Cheat Sheet - Visual Studio 2022
Tips
- Lave en template for et projekt..
Useful Shortcut Keys (as I see it)
- Go to matching brace: CTRL+å
- CTRL+D: Duplicate currently selected lines
- CTRL+X: Delete currently selected lines
- CTRL+K+C: Comment out currently selected lines
- CTRL+K+U: Uncomment currently selected lines
- CTRL+M+O: Collapse all sections
- CTRL+M+L: Expand everything
- CTRL+M+M: Toggle between expand/collapse section at cursor
- CTRL+K+K: Toggle bookmark
- CTRL+K+N: Go to next bookmark
- CTRL+P (when cursor is within paretheses of method call): Show command parameters
- CTRL+Shift+B: Build solution
- F5: Run (to next break point)
- CTRL+F5: Run (without exiting console window, when application is done)
- F10: Step (over)
- F11: Step into
- Shift+F11: Step out of
- F9: Toggle breakpoint
- Shift+ALT+L: Select current file in Solution Explorer
- Alt+Enter (bring up options for the stuff where the cursor currently is)
- Tab: Increase indentation for currently selected lines
- Shift+Tab: Decrease indentation for currently selected lines
- ...
- ...
Useful snippets (as I see it)
- Generate constructor: "ctor"+TAB
- Generate property: "prop"+ TAB"