Skip to content

Cheatsheets & Reference

Keyboard Shortcuts

Searchable cheatsheets for VS Code, Vim and Terminal shortcuts.

native Client-side
Command Palette
Cmd + Shift + P
Quick Open File
Cmd + P
Toggle Terminal
Ctrl + `
Toggle Sidebar
Cmd + B
Duplicate Line Down
Option + Shift + Down
Move Line Up/Down
Option + Up/Down
Multi-Cursor Select
Option + Click
Add Next Occurrence
Cmd + D
Format Document
Option + Shift + F
Fold / Unfold Code Block
Cmd + Option + [ / ]
Go to Symbol in Workspace
Cmd + T
Split Editor Window
Cmd + \

VS Code, Vim & Terminal Keyboard Shortcuts Reference

Mastering keyboard shortcuts is one of the most effective ways to boost programming speed and efficiency. This keyboard shortcuts reference features organized shortcuts for Visual Studio Code, Vim / Neovim, and Terminal / Bash. Switch easily between macOS and Windows/Linux shortcut layouts with a single click. Use the filter search bar to instantly find key combinations for file navigation, multi-cursor editing, code formatting, and buffer manipulation.

Frequently Asked Questions

How do I use multi-cursor editing in VS Code?

Press Cmd + D (Mac) or Ctrl + D (Windows) to select the next matching word. Alternatively, hold Option / Alt and click anywhere in the editor to place multiple cursors manually.

What is the quickest way to open files in VS Code?

Press Cmd + P (Mac) or Ctrl + P (Windows) to bring up Quick Open, then start typing the filename. Press Enter to navigate to the file immediately.

How do I search bash command history in terminal?

Press Ctrl + R and type a keyword. Keep pressing Ctrl + R to cycle backward through matching historical commands. Press Enter to execute or Right-Arrow to edit.