工欲善其事, its prerequisite VS2013 all raiders (installation, tips, shortcuts, plugins)!

Source: Internet
Author: User

Source: http://www.cnblogs.com/xfuture/p/3698528.html

If you have a friend who needs WPF tools, you can take a look at 工欲善其事, its prerequisite's WPF Chapter: Tools and tips for efficient WPF development as you develop your trajectory

Previous article "C + + performance, C # capacity?!" You can have your cake and eat it. NET native "Thanks to everyone for your favorite and editorial recommendation, thank you very much for your support. In the reply I found many friends still using the old IDE, of course, some of the company decided, and personal irrelevant. But conditional or new IDE is suitable for everyone, after all, the new IDE will have new features to reduce the programming time and speed up the efficiency, so that will squeeze more time for everyone to think. To do. NET, VS is a must. So this time I want to introduce VS2013 some installation and small tricks for everyone.

  [ Small Nine school, dedicated to the ordinary language to describe the extraordinary technology.] If you want to reprint, please indicate the source: small nine of the academy. Cnblogs.com/xfuture]

 Installation

Install VS2013 first your IE must be above 10, otherwise it cannot be installed.

Correct. VS2013 is an IE that can be used IE10, but some settings need to be changed at run time:

Blue Cat VS2013 is not necessarily to IE10, I did not install IE10, but at the beginning there will be a hint that if you do not install IE10, you may have a performance impact. I ignored this hint, after installation found that as long as the vs2013 open, IE8 access to the local site on the special card, especially slow, at first do not understand how to do, must use IE10? Later found that the original VS2013 as long as open, always monitor IE8,SIGNALR technology to push information, easy to vs2013 interface can refresh IE browser, this is a push technology, in the IE8 with the polling, special consumption performance, IE10 WebSocket, Therefore, performance is not affected. Then the vs2013 inside this set to calm down. 】

Now the VS installation is very labor-saving and the interface is pretty good. : 1. Official link, 2.IPlaySoft link. Install the click button to install it with one button, which is much more cool than SQL Server.

Need about 10G of space, so C disk storage small pots of friends to pay attention to ~

  

After the installation is finished, select the main locale, click Continue, VS will probably initialize the configuration for 35 minutes before it can be used.

List

VS2013 has a typical flat style, below the toolbar, code management bar and code block, you can feel it.

  

  

  

  You may see my side color and font and originally different, here specifically to share the background of the value of the eye (this is very important for the programmer to see the computer every day right!) There are also fonts:

Tools-Options-Fonts and colors: Click Custom on item background-hue 85 saturation 123 brightness 205, font is choose Calibri, personally think looks very comfortable. Foreground font I chose the purple color, it will match the background light green and will not be confused with the keywords.

Characteristics

VS2013 has some new features, and individuals have several very useful tips for everyone:

1.CodeLens (Code information Indicator). Place the modifier on each method in the code, which shows which changesets resulted in creating the method or making the most recent change, who was the last person to process the code, and which unit tests covered the method (including the latest pass/ Failed status) and what code references exist. Alternatively, you can quickly jump into the data, such as an associated changeset or a referenced code file, with a click.

  

2. Many people debug programs encounter a small but headache problem is difficult to visually see the function of the return value, such as
result = Rand. Next () + rand. Nextdouble ();
If we want to know the return values of the two functions in this line, there is no way to know what their return values are unless we define two local variables. The VS2013 IDE enhances the ability to monitor return values. When you drop a breakpoint on the next line, the return value is also included in the automatic monitoring category.

  

3. Many people who develop Web applications need to use front-end debugging tools such as Iedevelopertoolbar or firebug, but they are not convenient for development tools, and the new version of VS also integrates similar tools in the IDE.

  

4..NET Web Development and Tools Blog.

There is a detailed blog in MSDN here. I don't dwell on it. Click

In fact, there are more new features, in the use of people can slowly taste. The new IDE features are very appealing, and this is an important reason to replace the new IDE.

Skills

1. quickly view and edit the code of a function without creating a new tab . In the past, to see the implementation of a function, you need to click on the F12 to jump to the function, in fact, this is a waste of time. Vs2013peek view solves this problem. Under Move the cursor to a function, press alt+f12.

  

You can see that there is an implementation of the current function on the current page. You can then continue to press ALT+F12 in the Peek window. Then press ctrl+alt+-, or ctrl+alt++ to jump back and forth. Press ESC to close the Peek form. This will not need to jump back and forth ... (Alt+g can jump to the function definition, ALT + LEFT arrow can fallback)

2.Sublime text preview function. This is very tempting to have wood there! Previously, sublime text was used for its quick preview and positioning. Now we have the VS too! Tools, Options, text editor, all languages, scroll bars in the behavior click the thumbnail mode using the vertical scroll bar, the source code overview selection is wide. Can be achieved:

  

3. Nesting Logic code

When you select a snippet, press and hold ctrl+k,s to embed code into the selected code logic

4.//TODO

2010.//TODO You can view your own generation of task tables in the view-Other Windows-task list.

Plug - ins:

Here I recommend a C # particularly good plug-in: Resharper. It should be used by a lot of people. It is very large for code refactoring and Code specification and naming assistance. Artifact.

ReSharper is a very powerful plugin. Let me introduce one of the advantages here. We are interested to see some tutorials about ReSharper. Many friends in the blog Park have already shared it.

  

On the right there is a column, there will be red and yellow, yellow is representative of the code or can be improved, the point will be prompted, and will have the option to automatically optimize after click! Red means error and will give you the wrong hint in real time. These are a very big help for code normalization.

Shortcut keys

The essence of VS is the shortcut keys that are everywhere, which can greatly increase productivity. Here are some common examples:

  

1. Go back to the previous cursor position/advance to the next cursor position

1) Go back to the previous cursor position: Use the combo key "Ctrl +-";

2) advance to the next cursor position: "Ctrl + Shift +-".

2. Copy/cut/delete entire line of code

1) If you want to copy a whole line of code, just move the cursor to that line, and then use the combo key "CTRL + C" to complete the copy operation without selecting the entire row.

2) If you want to cut a whole line of code, simply move the cursor to that line, and then use the combo key "Ctrl+x" to complete the cut without selecting the entire row.

3) If you want to delete a whole line of code, simply move the cursor to that line, and then use the combo key "Ctrl+l" to complete the cut without selecting the entire row.

3. Revocation/anti-revocation

1) Revoke: Use the combination key "Ctrl + Z" to cancel the operation;

2) Anti-revocation: Use the combo key "Ctrl+y" for anti-undo operation.

4. Forward/Backward Search

1) Use the combination key "Ctrl+i";

2) Type the text you want to search (move the cursor to the search Word input box to start typing);

3) After you type the search text, you can use the combination key "Ctrl+i" and "ctrl+shift+i" to locate the search results before and after the search results are highlighted.

4) to end the search, you can press the "ESC" key or click the Close button on the right side of the Find box.

[Supplemental] After selecting a word, pressing the combo key "Ctrl+f" also brings up the lookup box, and the search results are highlighted.

5. Box-Type selection

Use the combo key "shift+alt+ arrow keys (or mouse)" To complete the box selection. Box selection allows you to select both lines of code and columns. This is very handy for deleting some code in bulk.

6. Insert a row above or below the line where the cursor is located

1) key combination "Ctrl+enter": Insert a blank line above the current line;

2) key combination "Ctrl+shift+enter": Inserts a blank line below the current line.

7. Navigate to the beginning and end of the line

1) Home key: Navigates to the beginning of the current line;

2) End key: Navigates to the end of the line at the current line.

8. Select the code between the start of the cursor and the beginning of the line (tail)

1) Select the code from the cursor to the beginning of the line: Use the combo key "Cshift + Home";

2) Select the code from the cursor to the end of the line: Use the key combination "Shift + END".

9. Quick Insert Code block

Please refer to my other article.

10. Invoke Smart Hints

1) Method 1: Use the combination key "Ctrl+j";

2) Method 2: Use the composite key "alt+→".

11. Calling parameter information hints

For some functions with large functions, it is difficult to easily confirm the use of parameters within the function. At this point you can put the cursor on the parameter name, and then press the key combination "ctrl+shif+ space", where the parameters are used will be highlighted.

12. Quick Switch Window

Use the combo Key "Ctrl+tab" (You can now open the IDE's navigation to get a bird's eye view).

13. Quickly hide or show the current code snippet

Use the combo Key "Ctrl+m,m" (Remember: to press two times M OH).

14. Build a solution

Use the combo key "Ctrl+shift+b".

15. Jump to a specified line

1) Method 1: Combination key "Ctrl+g";

2) Method 2: Click the line number in the status bar.

16. Commenting/Canceling comments

1) Note: Combination key "Ctrl+k+c";

2) Uncomment: Combine key "Ctrl+k+u".

17. Full Screen Display/exit full screen display

Use the combo key "SHIFT + ALT + ENTER".

18. Definitions and references

1) Jump to Definition: F12;

2) Find All references: Use the combo key "Shift+f12".

19. Find and replace

1) Find: Use the combination key "Ctrl+f";

2) Replace: Use the combo key "Ctrl+h".

20. Case Conversion

1) Turn lowercase: Use the combination key "Ctrl + U";

2) Capitalize: Use the combo key "CTRL + SHIFT + U".

21. Debugging related

1) Commissioning (start): F5;

2) Debug (reboot): Use combination key "Ctrl+shift+f5";

3) Debug (Start Without Debugging): Use the combination key "Ctrl+f5";

4) Debug (statement-by-sentence): F11;

5) Commissioning (step by Step): F10;

6) Set breakpoint: F9.

工欲善其事, its prerequisite VS2013 all raiders (installation, tips, shortcuts, plugins)!

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.