Visual Studio

Keyboard

Shortcuts

Hot Keys - Keyboard Shortcuts extension

Shortcut Command Description
Ctrl + N Go To All Navigate to any file, type, member, or symbol declaration
Ctrl + B Go To Definition Navigate to where a symbol is defined
Ctrl + Shift + Alt + B Go To Implementation Navigate from a base type or member to its various implementations
Alt + F7 Find All References See all symbol or literal references
Alt + Enter Quick Actions and Refactorings See what code fixes, code generation actions, refactorings, or other quick actions are available at your cursor position or code selection
Ctrl + D Duplicate line Duplicates the line of code that the cursor is in
F5 Start Debugging  
Ctrl + Alt + L Format Document  
Ctrl + K,/ Toggle single line comment/uncomment  
Ctrl + Shift + K Toggle block comment/uncomment  
Ctrl + R, T Run current test  
Ctrl + R, Ctrl + T Debug current test  

Other features

  • Locate File in Solution Explorer - Tools > Options > Projects and Solutions > Track Active Item in Solution Explorer
  • Add usings for types in reference assemblies and NuGet packages - Tools > Options > Text Editor > C# > Advanced > Suggest usings for types in reference assemblies and Suggest usings for types in NuGet packages