Tooling

Keyboard Shortcuts Reference for VS Code

A reference to the keyboard shortcuts you need to navigate and write code in Visual Studio Code without a mouse.

Getting around

Command Palette: Control Shift P. Quick Open a file by name: Control P. Toggle the integrated terminal: Control backtick.

Move focus between the editor, sidebar, panel, and status bar with F6, and open the accessibility help for the current view with Alt F1.

Editing

Save: Control S. Undo: Control Z. Redo: Control Y. Comment or uncomment a line: Control forward slash.

Move a line up or down: Alt Up arrow or Alt Down arrow. Copy a line up or down: Shift Alt Up or Down arrow.

Navigating code

Go to a line number: Control G. Go to a symbol in the file: Control Shift O. Go to a definition: F12. Rename a symbol everywhere: F2.

Open the Problems panel to review errors and warnings: Control Shift M. On macOS, use the Command key in place of Control for most of these shortcuts.