The Cheat Sheet
ContributeSearch
← EditorsEdit this page

VS Code

Essential keyboard shortcuts and features for Visual Studio Code.

  • Cmd+P / Ctrl+P — quick open a file.
  • Cmd+Shift+P / Ctrl+Shift+P — command palette.
  • Cmd+B / Ctrl+B — toggle sidebar.
  • Cmd+J / Ctrl+J — toggle terminal panel.

Editing

  • Cmd+D / Ctrl+D — select next occurrence of the current selection.
  • Cmd+Shift+L / Ctrl+Shift+L — select all occurrences.
  • Alt+Click — add a cursor.
  • Cmd+/ / Ctrl+/ — toggle line comment.
  • Shift+Alt+F — format document.

Multi-cursor & Selection

  • Cmd+Shift+K / Ctrl+Shift+K — delete line.
  • Alt+Up / Alt+Down — move line up/down.
  • Shift+Alt+Up / Shift+Alt+Down — copy line up/down.
  • Cmd+F / Ctrl+F — find in file.
  • Cmd+Shift+F / Ctrl+Shift+F — find in workspace.
  • Cmd+G / Ctrl+G — go to line.

References

Related Cheat Sheets