Thoughts on Visual Studio tips

Source: Internet
Author: User

I borrowed this book from Microsoft using the MVP name. Now I have to submit a homework (that is, to write a book review ).

This book basically corresponds to anyProgramDesign concepts,AlgorithmLanguage does not have much to do with it. It is a book about "tools". However, unlike the general user manual, this book does not fully introduce the use of Visual Studio, instead, it introduces more than 200 tips on how to use Visual Studio more efficiently. The ancients said that to do good deeds, workers must first sharpen their tools. This book is for this purpose.

The content of Visual Studio introduced in the book is basically based on vs2005. Of course, this content is also basically available in vs2008, and some techniques can also be used in vs2003. However, it should be noted that these skills are based on the English version of Vs, and the Chinese version has some differences (mainly because the shortcut keys are somewhat different ).

The author of this book, Sara Ford, is a tester in the vs product group. Therefore, she has a deep understanding of vs. The content in this book is actually from her (yes, is "her. The author's experiences on software testing and programming experience (there are Nintendo's red and white machines ......). In addition, the author wrote 252nd tips at the end of the book (after the appendix, even the cover is written (251 ways to improve your productivity), as a "reward" for reading the complete book ......

The vs Technique in the book is roughly divided into the following sections:

1,CodeEditor. This is mainly about the editor, which has the most contact with developers and is also the core part of vs as the IDE. This part is the most closely related to our daily code.

2. advanced editing. It is still about the introduction of the Code Editor, such as selection, comments, formatting code, opening a file, bookmarks, smart tags, code snippets, and so on.

3. Search. This is also a feature used in the development process, which is of great help for analyzing the code of others.

4. Application layout. Includes some skills related to the document work area, toolbar window, window layout, toolbar, and context menu.

5. Tips related to the toolbar window. Including command window, output window, toolbox, Task List window, and Object Browser skills.

6. tips on the dialog box. For example, some tips on external tools, Search dialog box, and start page.

7. skills related to solution, project, and debugging.

In fact, many tips in the book are about how to use vs more efficiently (through shortcuts) and how to change vs's default behavior through settings, there are also some skills that are useful to me and can be used in daily development (interestingly, when I tell people around me some of these skills, the other party says: "Do you know this feature is available? ", Haha ). Here are several impressive examples:

1. Loop clipboard. In fact, this function can be seen in the menu, but many code writers may not read the menu, especially the "edit" menu. You can use the cyclic clipboard with Ctrl + Shift + v. It is a bit like in office. When Ctrl + C is used to copy the content to a cyclic queue, the queue length is 20, that is to say, you can save the content of the last 20 "copy" or "cut" operations in the cyclic clipboard. Of course, 20 times are enough ......

2. CTRL + I quick search. It also exists in the menu, and has not been followed before. You can search for the file that is currently opened without any dialog box or toolbar. It is very interesting. We recommend that you try it on your own.

3. At any position of the current row, CTRL + enter insert a blank row in the previous row (CTRL + Shift + enter insert a blank row in the next row ). This seemingly simple feature is useful for improving coding efficiency. For example, when I write a code block, I write a line (for, foreach, if, or function name) -> then, place a complete pair of braces and move the cursor up a line.-> move to the end of the line.-> Press enter. Now this operation can be completed once. It is also useful when organizing code.

4. CTRL + l cut the current row, CTRL + Shift + L Delete the current row. Actually, I know that this function is available, but I didn't remember the shortcut keys ......

The above is only the content in the first section of the first chapter, and there are many useful and interesting things in the future. After reading this book, I think the Visual Studio IDE is really profound and profound. If many functions are not written here, I am afraid I will never know how to use Visual Studio, I was most impressed by the search box on the toolbar: after some text is entered, press enter to search for the content from the current cursor position in the file that is currently open, select the first searched content (anyone who has probably used this item knows), enter a number and press Ctrl + G to jump to this line, and enter a file name in the project, press Ctrl + Shift + G to open the file. Enter some content and Press F1 to open and search for the content. Enter a function name, press F9, a breakpoint will be added to this function. If the input is greater than the number, you can use some commands in Vs, such as file. openfile ......

I don't know if this book will be introduced to China or even Chinese versions, but I think if you spend more than two or three hours a day dealing with Visual Studio, it is recommended that you read this book, even if your English is not very good, it is very easy to read.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.