3rd: Visual Studio Programmer's motto
Visual Studio 2010 is a program development tool that I often use, and I know that there are a lot of shortcuts in VS that can help improve efficiency, but I don't want to remember, and recently read the book "Visual Studio Programmer's motto" in Vim. Some techniques have been found to be helpful in improving programming efficiency. When I was learning vim, I installed the present visual Studio 2010 Viemu,vim very powerful, the command can do a lot of powerful functions, so I picked the skills must be compatible with the VIEMU, and the use of high frequency.
Tip 1.2 Loop Paste Ctrl-shift-v
Instead of having to use CTRL + C and CTRL + V in multiple lines of code, replace them with different code.
Tip 1.3 Insert a row above or below
Using the letter O and the letter O in Vim is simple and convenient.
Tip 1.5 Delete the previous word Ctrl+backspace
This shortcut is also useful in Viemu, and is also customizable in vim
Tip 1.10 Swap adjacent characters, words, lines
Replace characters with XP in Vim, DAWWP Exchange 2 adjacent words, DDP swaps two adjacent lines
Tip 1.11 Change Case
In Vim is ~
Tip 1.14 Jump to the top or bottom of the current view in the editor without scrolling
There are three letters in VIM: H Top (mnemonic high), M (middle middle), L (bottom low)
Tip 1.16 Navigate forward and backward through the editor with the return tag (this is super useful!). )
Ctrl + Minus, ctrl+shift+ minus: front and rear positioning
Tip 1.18 accessing the navigation bar via the keyboard
Ctrl+f2
Tip 1.22 do not eject the go to Line dialog box when using Ctrl+g
In VIM with GG to the top of the file, G to the end of the file,: 12 to line 12th
Tip 2.1 Using the block selection in the editor
Quick selection: shift+alt+ the arrow keys, or press the ALT key to select an area with the mouse, this is the same as word's operation
Tip 2.5 Commenting and canceling comments
Ctrl+k, CTRL + C, or ctrl+e, CTRL + C comment code,
Ctrl+k, Ctrl+u, or ctrl+e, Ctrl+u uncomment the code
Tip 2.6 Showing guide lines in the editor has helped you format your code
If the code is too long, the readability is reduced, this function is generally not much use, I add 2 lines in the 80 and 120 columns, I can see which line of statements is a bit too long.
First, install a plugin editor guidelines in VS2010 and then modify the registry
Hkey_current_user\software\microsoft\visualstudio\10.0\text Editor
Create Guides String Value REG_SZ key, key value: RGB (255,0,0) 80,120
Tip 212 percent stack and unwind code
Toggle Outline Display Expand---ctrl+m, M
Stop Outlining---ctrl+m, P
Collapse To Definition---ctrl+m, O
Tip 2.27 Set bookmarks and navigate between multiple bookmarks
Ctrl+k, Ctrl+k set a bookmark
Ctrl+k, CTRL + N Next Bookmark
Ctrl+k, Ctrl+p previous bookmark (as if this is not available in my Viemu)
Ctrl+k, ctrl+l Delete all bookmarks
Tip 2.29 Create bookmarks for all results of Quick find
The Find dialog box has the "Bookmark All" button, which has never been used.
Tip 2.32 shows the quick information of the function ctrl+k, I
The general mouse hover when there is this hint.
Tip 3.1 Incremental Search Ctrl+i
The original vim is the/command, then use N and N to locate the next or previous match.
Tip 3.2 Use the CTRL+F3 key to search for the currently selected word without opening the Find and Replace window (the cursor is positioned above the word you are looking for)
The * key is used in Vim and Viemu.
Tip 4.1 Use the ctrl+alt+ down arrow to open the File tab of the File drop-down menu
Just use the keyboard to quickly go to another file, then you can enter the file name directly, and then enter.
Of course, you can also use the Ctrl+tab in the 4.7 article.
Tip 4.4 Open the folder containing the source files directly
Right-click on any of the file tabs and select "Open Folder", which is much faster and less error-prone than using explorer.
Tip 4.7 Use the Ctrl+tab key to open the IDE Navigator to quickly view and browse all open files and tool windows
It's OK with 4.1, but this one is good to remember. Windows is ALT + TAB
Tip 4.34 Shift + Alt + enter into full screen mode
Sometimes concentrate on writing code, you can try this mode.
Tip 5.12 Redirect Debug messages to the Output window
All Output window text is redirected to the Immediate window, general, debugging, options, tools
Tip 5.26 Create and view TODO comments in the task list
This function is very common, remember which code is still to be perfected.
Tip 5.28 Display HACK, undone, and custom tags in the task list
This is not used. List of tasks, environment, tools, options, and more
Tip 6.11 Add your own external tools to the list
Tools, external Tools, add
Prepare to use this function to set the Astyle.
Tip 7.14 No need to edit code, as long as the track point can be used to record PrintF () or Console.WriteLine () Information
This feature has not been used before, right-click the breakpoint, where you want to insert a track point, insert a track point
The technique in this book is still quite messy, and many of the more frequently used shortcuts are not introduced in this book, and you see a theme from StackOverflow.
Http://stackoverflow.com/questions/98606/favorite-visual-studio-keyboard-shortcuts
It is more objective to find out the more useful shortcut keys for voting in this area.
Ctrl+ - and Ctrl + Shift +- 在最近的几个位置来回跳转
Ctrl+ tab and Ctrl + Shift +tab在打开的文件之间切换
Shift+ Alt + Enter fullscreen
Ctrl+I 增量搜索
Ctrl+ . Smart correction
Ctrl+ K , Ctrl + C or Ctrl +E, Ctrl + C Comment
Ctrl+ K , Ctrl + U or Ctrl +E, Ctrl +U Uncomment
TAB TABAuto-Complete Code Snippets
Ctrl+ ] Match parentheses
Ctrl+ Shift + ] Select the brackets in the content, this article I have just learned, super like!
Ctrl+Space 这个中国人用不了,只能用Ctrl+K+P 函数提示
Ctrl+ K , Ctrl + D code formatting
Ctrl+ L Delete When moving forward
Ctrl+ K , Ctrl + K bookmark creation
Ctrl+ K , Ctrl + N skip to next bookmark
Ctrl+ / Enter ">of" and then enter the name of the file you want to open, just use the keyboard to open the file. I like this, the book says this, but said to enter open files and so on, the original >of this is the simplest and easy to remember.
Ctrl+ Shift + V loop paste
Ctrl+ M , Ctrl +M collapses or expands the current block
CTRL+F5 开始执行(不调试)
CTRL+ SHIFT + B Build Solution
3rd: Visual Studio Programmer's motto