In this article, Iβll be sharing a selection of VSCode shortcuts and keybindings that I frequently use and find
particularly useful as a screen reader (non-visual) developer.
While memorizing every keybinding available in VSCode can
be overwhelming, focusing on a core set of shortcuts can greatly enhance efficiency and ease of use. To make this guide practical, Iβve highlighted keybindings that are most likely to be beneficial for screen reader users. The list below will have marks on shortcuts which I think essential.
The default keybindings are sourced from the official VSCode documentation as of September 3, 2024. I hope this resource will help you streamline your workflow by focusing on the most useful and frequently used shortcuts.
NOTE: The essential shortcuts will ended by π
General
- Ctrl+Shift+P, F1 π
- Show Command Palette
- Ctrl+P π
- Quick Open, Go to Fileβ¦
- Ctrl+Shift+N
- New window/instance
- Ctrl+Shift+W π
- Close window/instance
- Ctrl+, π
- User Settings
- Ctrl+K Ctrl+S
- Keyboard Shortcuts
Basic editing
- Ctrl+X π
- Cut line (empty selection)
- Ctrl+C π
- Copy line (empty selection)
- Alt+ β/β
- Move line up/down
- Shift+Alt+ β/β
- Copy line up/down
- Ctrl+Shift+K π
- Delete line
- Ctrl+Enter π
- Insert line below
- Ctrl+Shift+Enter π
- Insert line above
- Ctrl+Shift+\ π
- Jump to matching bracket
- Ctrl+ ]/[
- Indent/outdent line. This is useful when I want to make sure there is no whitespaces at start.
- Home/End π
- Go to beginning / end of line
- Ctrl+Home π
- Go to beginning of file
- Ctrl+End π
- Go to end of file
- Ctrl+ β/β
- Scroll line up/down
- Alt+ PgUp/PgDn
- Scroll page up/down
- Ctrl+Shift+[
- Fold (collapse) region
- Ctrl+Shift+]
- Unfold (uncollapse) region
- Ctrl+K
- Ctrl+[ Fold (collapse) all subregions
- Ctrl+K
- Ctrl+] Unfold (uncollapse) all subregions
- Ctrl+K Ctrl+0
- Fold (collapse) all regions
- Ctrl+K Ctrl+J
- Unfold (uncollapse) all regions
- Ctrl+K Ctrl+C
- Add line comment
- Ctrl+K Ctrl+U
- Remove line comment
- Ctrl+/ π
- Toggle line comment
- Shift+Alt+A π
- Toggle block comment
- Alt+Z π
- Toggle word wrap
Navigation
- Ctrl+T
- Show all Symbols
- Ctrl+G π
- Go to Line...
- Ctrl+P π
- Go to File...
- Ctrl+Shift+O π
- Go to Symbol...
- Ctrl+Shift+M π
- Show Problems panel
- F8 π
- Go to next error or warning
- Shift+F8 π
- Go to previous error or warning
- Ctrl+Shift+Tab π
- Navigate editor group history
- Alt+ β/β
- Go back / forward
- Ctrl+M π
- Toggle Tab moves focus
Search and replace
- Ctrl+F π
- Find
- Ctrl+H π
- Replace
- F3 / Shift+F3
- Find next/previous
- Alt+Enter
- Select all occurences of Find match
- Ctrl+D
- Add selection to next Find match
- Ctrl+K Ctrl+D
- Move last selection to next Find match
- Alt+ C/R/W
- Toggle case-sensitive / regex / whole word
Multi-cursor and selection
- Alt+Click
- Insert cursor
- Ctrl+Alt+ β/β
- Insert cursor above / below
- Ctrl+U
- Undo last cursor operation
- Shift+Alt+I π
- Insert cursor at end of each line selected
- Ctrl+L π
- Select current line
- Ctrl+Shift+L
- Select all occurrences of current selection
- Ctrl+F2 π
- Select all occurrences of current word
- Shift+Alt+β
- Expand selection
- Shift+Alt+β
- Shrink selection
- Shift+Alt + (drag mouse)
- Column (box) selection
- Ctrl+Shift+Alt+ (arrow key)
- Column (box) selection
- Ctrl+Shift+Alt+ PgUp/PgDn
- Column (box) selection page up/down
Rich languages editing
- Ctrl+Space, Ctrl+I π
- Trigger suggestion
- Ctrl+Shift+Space π
- Trigger parameter hints
- Shift+Alt+F π
- Format document
- Ctrl+K Ctrl+F π
- Format selection
- F12 π
- Go to Definition
- Alt+F12 π
- Peek Definition
- Ctrl+K F12 π
- Open Definition to the side
- Ctrl+. π
- Quick Fix
- Shift+F12 π
- Show References
- F2 π
- Rename Symbol
- Ctrl+K Ctrl+X π
- Trim trailing whitespace
- Ctrl+K M
- Change file language
- Ctrl+F4, Ctrl+W π
- Close editor
- Ctrl+K F
- Close folder
- Ctrl+\
- Split editor
- Ctrl+ 1/2/3
- Focus into 1st, 2nd or 3rd editor group. This is most useful for me when I repeatedly jump between specific locations in file/files.
- Ctrl+K Ctrl+ β/β
- Focus into previous/next editor group
- Ctrl+Shift+ PgUp/PgDn
- Move editor left/right
- Ctrl+K β/β
- Move active editor group
- Ctrl+N
- New File
- Ctrl+O
- Open File...
- Ctrl+S π
- Save
- Ctrl+Shift+S
- Save As...
- Ctrl+K S
- Save All
- Ctrl+F4 π
- Close
- Ctrl+K Ctrl+W
- Close All
- Ctrl+Shift+T π
- Reopen closed editor
- Ctrl+K π
- Enter Keep preview mode editor open
- Ctrl+Tab π
- Open next
- Ctrl+Shift+Tab π
- Open previous
- Ctrl+K P π
- Copy path of active file
- Ctrl+K R π
- Reveal active file in Explorer
- Ctrl+K O
- Show active file in new window/instance
- F11
- Toggle full screen
- Shift+Alt+0
- Toggle editor layout (horizontal/vertical)
- Ctrl+ =/-
- Zoom in/out
- Ctrl+B
- Toggle Sidebar visibility
- Ctrl+Shift+E π
- Show Explorer / Toggle focus
- Ctrl+Shift+F π
- Show Search
- Ctrl+Shift+G π
- Show Source Control
- Ctrl+Shift+D π
- Show Debug
- Ctrl+Shift+X π
- Show Extensions
- Ctrl+Shift+H π
- Replace in files
- Ctrl+Shift+J
- Toggle Search details
- Ctrl+Shift+U
- Show Output panel
- Ctrl+Shift+V π
- Open Markdown preview
- Ctrl+K V
- Open Markdown preview to the side
- Ctrl+K Z
- Zen Mode (Esc Esc to exit)
- F9 π
- Toggle breakpoint
- F5 π
- Start/Continue
- Shift+F5 π
- Stop
- F11 / Shift+F11
- Step into/out
- F10
- Step over
- Ctrl+K Ctrl+I
- Show hover
- Ctrl+` π
- Show integrated terminal
- Ctrl+Shift+` π
- Create new terminal
- Ctrl+C π
- Copy selection
- Ctrl+V π
- Paste into active terminal
- Ctrl+ β/β π
- Scroll up/down
- Shift+ PgUp/PgDn π
- Scroll page up/down
- Ctrl+ Home/End
- Scroll to top/bottom
Editor management
File management
Display
Debug
Integrated terminal
Other operating systemsβ keyboard shortcuts and additional unassigned shortcuts available at aka.ms/vscodekeybindings
Top comments (0)