My commonly used shortcut keys in Visual Studio 2013

Source: Internet
Author: User
Statement and advertisement

All functions are written for C # development and configuration. Some functions may be provided by the plug-in. I will try to mark the corresponding plug-in name. All shortcut keys are expressed in uppercase and lowercase for ease of writing. Very common shortcut keys, such as Ctrl + C, CTRL + Z, CTRL + Y, etc., are not written, mainly dedicated to vs or the most commonly used. Most of the shortcuts described in this article can be used for office software.

International practice, Q group: 185718116.

Resetting configurations

Code editing prompt

CTRL + J activate vs default code prompt function. Resharper and Other plug-ins will recommend that you modify the shortcut key.

Import namespace

I personally think Ctrl +. is the most convenient, the complexity is Alt + Shift + F10, more complex is right-click the menu resolve, more complex is edit-> intelliisense-> resolve, the most complicated thing is that the previous operations are completed with the mouse ...... In addition, vs does not have one-click eclipse import of all dependencies (for example, one-click Import of all the Java package functions used by the current Code), which is a pity.

Code Selection

1. Select region code

Press shift to select the entire (ROW) block code, which can be combined with four direction keys (left and right keys: select a single character, up and down keys: The current column of the upper and lower rows), Home (the beginning of the current row) end, pgup, and pgdn.

2 words (word by word) Selection

CTRL + Shift + arrow keys (left-click, right-click) can select the entire word at a time.

Code Deletion

If you use the [word (word-by-word) Selection] skill to delete a function or class name, this is really awesome. Press Ctrl + Delete to delete the block on the right of the cursor (the entire word or a Punctuation Point ).

Code deletion. Skill Level. 2

If you want to delete the entire row, the previous skill is obviously inconvenient. Press Ctrl + L to compress a large fireball. Attack effect: Delete the current row.

Code Movement

Alt + indicates the up or down arrow in the direction. You can swap the code of the current line with the previous line or the next line. If you press the multi-Power Up Arrow, you can move up several lines or move the entire code.

Screen Rolling

Actually, I am a pseudo-keyboard controller (refer to: Stephen Chow. king of Comedy. actually, I am an actor). By default, VS has a considerable number of functions that can only be operated with the mouse. However, as a code ant, clicking the mouse is actually a very disturbing operation process. I am so annoyed that I can use the keyboard to complete the operation. I try not to use the mouse. Okay, let's just say something.

CTRL + direction key: top or bottom, let vs code window up or down a line.

Pgup or pgdn is used when there are too many lines to be converted. To return to the document switch, press Ctrl + home. The end of the document must be Ctrl + end.

Method (function) body collapse

This function works with the [Screen rolling] function and is often used to read other people's code. Place the mouse in the method definition area and press Ctrl + M twice (press Ctrl and press m twice to summon X-dragon. Thanks @ _ leox). The special skill effect is as follows.

Method (function) body collapse. Skill Level. 2

CTRL + M + O fold all the method bodies of the class where the cursor is located, including region. Thanks to @ _ leox for providing information.

Method (function) body collapse. Skill Level. 3

Collapse all classes in the current class file. You know, some people like to define N classes in a class file, one by one, rather tired. At this point, press Ctrl + M + L to summon the war horse of hell, and the moving speed is + 60%. Press Ctrl + M + L again to reverse call ~

Code snippet search

Alt + A shortcut calls out Bing code search (Bing code search for C # Plug-In needs to be installed), and the Bing code search function will also appear when Ctrl + J activates the code prompt. When encountering a new API, there is reference code, which is undoubtedly more helpful than simply viewing msdn.

Code Window Management

1 alt +-activate the menu of the current code window

2 Ctrl + F4 close the current code window

Note

1. Three/so nice features have to be said

2 Ctrl + k, CTRL + C comments, CTRL + k, CTRL + u comments. Visual assist X provides a more convenient method. Select the code to be annotated and press/key gently. Yes, press/key gently, only one key is required. The same key is used for anti-annotation ~.

View parameter list

When there are too many function parameters, it is too difficult to remember the parameter list ), press Ctrl + Shift + space in the method list to view the method signature. This function conflicts with the input method. You can modify the shortcut key combination on your own.

Code Reading System

Currently, I have not moved bricks most of the time, but read code. Sorry, I read the code.

Switch code window

After activating the window with Ctrl + TAB, press and hold the ctrl key, and use the tab, Shift + TAB, or direction key to navigate. The ALT + F7 key can be viewed in active tool windows (left side.

View the maintainability of a Method

Attach the plug-in skill, ALT + 9.

View method callers

Alt + 2 enabled. In the past, you can also find method callers by SHIFT + F12, but it is not as convenient as 2013.

View quick Definition

Alt + F12, 2013 new features. It is better than F12 to jump to the definition, and it is easy to mess up with more open documents. Visual assistant X provides the definition of ALT + G jump to jump. It feels good to use it. You do not need to leave the-F, J-; zone.

Code Reading navigation

When you look at the code, you will often jump to different class files. Sometimes you want to return the results step by step in the order of jump. You can press Ctrl +-to complete the back operation and press Ctrl + Shift +-forward. In my opinion, the Alt + orientation left and right-click provided by visual assistant X are easier to use than those provided by visual assistant X.

Code Reading navigation. Skill Level. 2

CTRL +: Jump to the specified class, method, and field in the current solution.

Search Class Definition. Skill Level

Search in the document, CTRL + F, continue to find the next press F3, find the previous SHIFT + F3. In the symbols such as variables, methods, and class names, press Ctrl + F3 to search for the reference of the symbol in the current document.

Search Class Definition. Skill Level. 1

During maintenance of old projects, you may often need to fix vulnerabilities and add new functions. You can use Ctrl +; to find a simple solution.

Search Class Definition. Skill Level. 2 + 3

When you need more powerful search functions, you can use Ctrl + Shift + F to activate the file search skills. In addition, the Regular Expression Buffer is used to throw the mouse accidentally.

Jump to specified row

In the same way as word, CTRL + G.

Class list

CTRL + F2 + up and down arrow keys to navigate to multiple classes in the current document.

 

 

Original blog address: http://www.cnblogs.com/cxd4321/p/3636225.html

My common shortcut keys for Visual Studio 2013 ()

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.