1. F5: start debugging
2. F7/Shift-F7: DisplayCodeWindow or display designer window
3. Alt-Enter: displays the attributes of the selected object (this is a common windows shortcut key, which can be used to display the attributes of directories and files)
4. F6/Shift-F6/Ctrl-shift-B: Build solution/build project/build Solution
5. Shift-alt-C: Add a class to the Project
6. CTRL-K + ctrl-C: Comment out a selection code section.
7. CTRL-K + ctrl-u: Cancel comments of a selected code
8. CTRL-M + ctrl-o/Ctrl-M + ctrl-P: fold definition/expand all code (stop outline display)
9. CTRL-M + Ctrl + M: Expand or collapse the code segment (switch to outline display)
10. CTRL-B + ctrl-T: Switch code bookmarks
11. CTRL-alt-P: Process with the Debugger Attached
12. CTRL-alt-l: Display solution Browser
13. CTRL-shift-A/alt-shift-A: add an item in the project/remove an item from the project
The above is what the original author thinks is the longest commonly used one. I think there are fewer than 13, at least I would like to add the following:
1. Forced smart sensing: Ctrl + J;
2. Force smart sensing to display the parameter information: Ctrl-shift-space;
3. format the entire block: Ctrl + K + F
4. Check matching brackets (switch between left and right brackets): Ctrl +]
5. Select the code from the cursor to the beginning (end) of the line: Shift + home (end)
6. Switch between method definition and call: Ctrl + Shift + 7 (8)
7. Set the breakpoint: F9
8. Use tab to increase indentation and SHIFT + TAB to reduce indentation.
9. format the entire code: Ctrl + k, d
10. Set bookmarks: Ctrl + B + T. Jump to bookmarks: Ctrl + B + n