VS Code

VS Code shortcuts and commands for efficient coding, navigation, and debugging

16 commands

Commands

16 commands available
vscode

Open Command Palette

Quickly access all commands in VS Code

Ctrl + Shift + P (Windows/Linux) | Cmd + Shift + P (Mac)
vscode
shortcuts
commands
vscode

Open Integrated Terminal

Open or close the integrated terminal

Ctrl + ` (Windows/Linux) | Cmd + ` (Mac)
vscode
shortcuts
terminal
vscode

Split Editor

Open a new editor side by side

Ctrl + \ (Windows/Linux) | Cmd + \ (Mac)
vscode
shortcuts
editor
vscode

Multi-Cursor Editing

Add multiple cursors for simultaneous editing

Alt + Click (Windows/Linux) | Option + Click (Mac)
vscode
shortcuts
cursor
vscode

Format Code

Automatically format your code

Shift + Alt + F (Windows/Linux) | Shift + Option + F (Mac)
vscode
shortcuts
format
vscode

Quick Open File

Quickly open files by name

Ctrl + P (Windows/Linux) | Cmd + P (Mac)
vscode
shortcuts
files
vscode

Find and Replace

Search and replace text in the editor

Ctrl + F / Ctrl + H (Windows/Linux) | Cmd + F / Cmd + Option + F (Mac)
vscode
shortcuts
search
vscode

Toggle Sidebar

Show or hide the sidebar with file explorer, search, and extensions

Ctrl + B (Windows/Linux) | Cmd + B (Mac)
vscode
shortcuts
sidebar
vscode

Close Editor

Close the active editor tab

Ctrl + W (Windows/Linux) | Cmd + W (Mac)
vscode
shortcuts
editor
vscode

Reopen Closed Editor

Reopen the last closed editor tab

Ctrl + Shift + T (Windows/Linux) | Cmd + Shift + T (Mac)
vscode
shortcuts
editor
vscode

Go to Line

Jump to a specific line in the active file

Ctrl + G (Windows/Linux) | Cmd + G (Mac)
vscode
shortcuts
navigation
vscode

Search in Files

Find text across the entire project

Ctrl + Shift + F (Windows/Linux) | Cmd + Shift + F (Mac)
vscode
shortcuts
search
vscode

Source Control

Open the Source Control view for Git operations

Ctrl + Shift + G (Windows/Linux) | Cmd + Shift + G (Mac)
vscode
shortcuts
git
vscode

Start Debugging

Launch debugger with selected configuration

F5
vscode
shortcuts
debug
vscode

Debug Step Controls

Step through code while debugging

F10 (Step Over) | F11 (Step Into) | Shift + F11 (Step Out)
vscode
shortcuts
debug
vscode

New Terminal

Create a new integrated terminal

Ctrl + Shift + ` (Windows/Linux) | Cmd + Shift + ` (Mac)
vscode
shortcuts
terminal