Visual Studio Keyboard Shortcuts

A comprehensive guide to essential keyboard shortcuts in Visual Studio to enhance your productivity.

Boost your productivity with these essential Visual Studio keyboard shortcuts. This guide covers shortcuts for search and navigation, editor commands, and solution explorer management.

Shortcuts

Search & Navigation

  • Ctrl + , : Go to All

  • Ctrl + T : Go to All

  • Ctrl + Shift + T : Go to files

  • Ctrl + 1 + T : Go to types

  • Ctrl + 1 + M : Go to members

  • Ctrl + Shift + F : Find in Files

  • Ctrl + Shift + H : Replace in Files

  • Ctrl + Shift + I : Find in file

  • Ctrl + F : Find in file

  • Ctrl + Q : Feature Search

Editor

  • Ctrl + G : Go to Line

  • Ctrl + L : Remove Line

  • Ctrl + Enter : New line above the current line

  • Ctrl + . : Quick Actions and Refactorings

  • Shift + Alt + F10 : Quick Actions and Refactorings

  • Alt + Up Arrow : Move line(s) up

  • Alt + Down Arrow : Move line(s) down

  • Ctrl + K, Ctrl + C : Comment Line

  • Ctrl + K, Ctrl + U : Uncomment Line

  • Shift + Alt + Arrow : Select / Edit multiple lines

  • Ctrl + Alt + Left Click : Select / Edit multiple carets lines

  • Alt + Shift + ; : Insert carets at all matching locations

  • Alt + Shift + . : Insert carets at next matching location

Solution Explorer

  • Ctrl + Alt + L : Switch focus to Solution Explorer
  • Ctrl + Tab : Switch focus back to Editor
  • Ctrl + ; : Search in Solution Explorer
  • Ctrl+[, S : Select Active File in Solution Explorer
  • Ctrl + Left Arrow : Collapse All descendants

References

For more detailed information, check out these resources:

[^] Keyboard shortcuts in Visual Studio