This cheatsheet was created to remember commands which I widely use in Visual Studio.
To assign shortkeys to commands you have to go in Tools->Options->Environment->Keyboard
.
Shortcuts which are widely used during writing a code |
Command |
Shortkey |
Explanation |
Edit.GoToDefintion |
Shift + F12 |
Find all references to this symbol |
Edit.CommentSelection |
CTRL + E + C |
Comment selection |
Edit.UncommentSelection |
CTRL + E + U |
Uncomment selection |
Edit.FormatSelection |
CTRL + E + F |
Format the line |
Edit.FormatDocument |
CTRL + E + D |
Format document |
View.NavigateBackward |
CTRL + - |
Move back to previous editing point |
Edit.LineEnd |
END |
Move to end of the line |
Edit.LineStart |
HOME |
Move to start of the line |
Edit.Cut |
CTRL + X |
Cut the line/selected field |
Edit.LineDelete |
CTRL + SHIFT + L |
Delete the line |
Window.CloseDocumentWindow |
CTRL + W |
Close currently open document |
Window.CloseAllButThis |
CTRL + ALT + W |
Close All But this |
|
SHIFT + LEFT/RIGHT/UP/DOWN |
Select lines of code |
|
CTRL + C + V |
Copy line and paste it into the next line |
Shortcuts which are widely used during debugging |
Command |
Shortkey |
Explanation |
Build.BuildSolution |
F6 |
Find all references to this symbol |
Build.BuildSelection |
SHIFT + F6 |
Build project |
Debug.Start |
F5 |
Start debugger / Go to next breakpoint |
Debug.StopDebugging |
SHIFT + F5 |
Quit debugger |
Debug.StepOver |
F10 |
Debugger step over |
Debug.StepInto |
F11 |
Debugger step in |
Debug.StepOut |
SHIFT + F11 |
Debugger step out |
Debug.RunToCursor |
CTRL + F10 |
Run to cursor |
Debug.ToogleBreakpoints |
F9 |
Toggle breakpoint |