Keyboard Shortcuts for Code

Visual Studio Code is an open source code editor that runs everywhere. VS Code comes with many features and has an amazing support for keyboard shortcuts. Tip: Learn one or two every week.

Keyboard shortcuts may differ between keyboard layouts. Mouseless is smart enough to show the exact keys according to your layout.

Essentials

  • Find F
  • Replace F
  • Find Next
  • Find Previous G
  • Toggle Line Comment /
  • Toggle Block Comment A
  • Scroll Line Down
  • Scroll Line Up
  • Scroll Page Down
  • Scroll Page Up

Selections

  • Select current line L
  • Add Selection To Next Find Match D
  • Select all occurrences of current word F2
  • Select All Occurrences of Find Match
  • Select all occurrences of current selection L
  • Expand AST Selection
  • Shrink AST Selection

Lines

  • Cut line (empty selection) X
  • Copy line (empty selection) C
  • Delete Line K
  • Insert Line Below
  • Insert Line Above
  • Move Line Down
  • Move Line Up
  • Copy Line Down
  • Copy Line Up
  • Indent Line ]
  • Outdent Line [
  • Go to End of Line END

Cursors

  • Undo last cursor operation U
  • Insert cursor at end of each line selected I
  • Insert Cursor Below
  • Insert Cursor Above

Rich Languages Editing

  • Trigger Suggest
  • Trigger Parameter Hints
  • Format Document F
  • Go to Definition F12
  • Peek Definition F12
  • Quick Fix .
  • Peek References F12
  • Rename Symbol F2
  • Replace with Next Value .
  • Replace with Previous Value ,

Navigation

  • Show All Symbols T
  • Go to Line… G
  • Go to File…, Quick Open P
  • Go to Symbol… O
  • Show Problems M
  • Go to Next Error or Warning F8
  • Go to Previous Error or Warning F8
  • Show All Commands P
  • Navigate Editor Group History
  • Go Back -
  • Go Forward -
  • Go to End of File
  • Go to Beginning of File

Window Management

  • New Window N
  • Close Window W
  • Close Editor W
  • Split Editor \
  • Focus into First Editor Group 1
  • Focus into Second Editor Group 2
  • Focus into Third Editor Group 3
  • Move Editor into Next Group
  • Move Editor into Previous Group

File Management

  • New File N
  • Save S
  • Save All S
  • Save As… S
  • Close W
  • Close Others T
  • Reopen Closed Editor T
  • Open Next
  • Open Previous

Display

  • Toggle Full Screen F
  • Zoom in = +
  • Zoom out -
  • Toggle Sidebar Visibility B
  • Show Explorer / Toggle Focus E
  • Show Search F
  • Show Source Control G
  • Show Debug D
  • Show Extensions X
  • Show Output U
  • Quick Open View Q
  • Open New Command Prompt C
  • Toggle Markdown Preview V
  • Toggle Integrated Terminal `

Search

  • Show Search F
  • Replace in Files H
  • Toggle Match Case C
  • Toggle Match Whole Word W
  • Toggle Use Regular Expression R
  • Toggle Search Details J
  • Focus Next Search Result F4
  • Focus Previous Search Result F4
  • Show Next Search Term
  • Show Previous Search Term

Debug

  • Toggle Breakpoint F9
  • Start F5
  • Start (without debugging) F5
  • Pause F6
  • Step Into F11
  • Step Out F11
  • Step Over F10
  • Stop F5

Miscellaneous

  • Jump to matching bracket \
  • Fold (collapse) region [
  • Unfold (uncollapse) region ]
  • Toggle Find Case Sensitive C
  • Toggle Find Regex R
  • Toggle Find Whole Word W
  • Toggle Use of Tab Key for Setting Focus M
  • Toggle Word Wrap Z
Mouseless

Get it done faster

Master all of the magic keystrokes for your favorite apps & tools.

25% off today · 30-Day Money-Back Guarantee

FAQ

Download

Download for macOS
macOS 10.14 or higher