You are on page 1of 1

Search and replace File management

Ctrl+F Find Ctrl+N New File

Keyboard shortcuts for Windows Ctrl+H


F3 / Shift+F3
Replace
Find next/previous
Ctrl+O
Ctrl+S
Open File...
Save
Alt+Enter Select all occurences of Find match Ctrl+Shift+S Save As...
General Ctrl+D Add selection to next Find match Ctrl+K S Save All
Ctrl+K Ctrl+D Move last selection to next Find match Ctrl+F4 Close
Ctrl+Shift+P, F1 Show Command Palette
Ctrl+P Quick Open, Go to File Alt+C / R / W Toggle case-sensitive / regex / whole word Ctrl+K Ctrl+W Close All

Ctrl+Shift+N New window/instance Ctrl+Shift+T Reopen closed editor

Ctrl+Shift+W Close window/instance Multi-cursor and selection Ctrl+K Enter Keep preview mode editor open
Ctrl+Tab Open next
Ctrl+, User Settings
Alt+Click Insert cursor Ctrl+Shift+Tab Open previous
Ctrl+K Ctrl+S Keyboard Shortcuts
Ctrl+Alt+ / Insert cursor above / below Ctrl+K P Copy path of active file
Ctrl+U Undo last cursor operation Ctrl+K R Reveal active file in Explorer
Basic editing Shift+Alt+I Insert cursor at end of each line selected Ctrl+K O Show active file in new window/instance
Ctrl+X Cut line (empty selection) Ctrl+I Select current line

Ctrl+C Copy line (empty selection) Ctrl+Shift+L Select all occurrences of current selection Display
Alt+ / Move line up/down Ctrl+F2 Select all occurrences of current word
F11 Toggle full screen
Shift+Alt+ Expand selection
Shift+Alt + / Copy line up/down Shift+Alt+1 Toggle editor layout (horizontal/vertical)
Ctrl+Shift+K Delete line Shift+Alt+ Shrink selection
Ctrl+ = / - Zoom in/out
Ctrl+Enter Insert line below Shift+Alt + Column (box) selection
(drag mouse) Ctrl+B Toggle Sidebar visibility
Ctrl+Shift+Enter Insert line above Ctrl+Shift+E Show Explorer / Toggle focus
Ctrl+Shift+Alt Column (box) selection
Ctrl+Shift+\ Jump to matching bracket Ctrl+Shift+F Show Search
+ (arrow key)
Ctrl+] / [ Indent/outdent line Ctrl+Shift+G Show Source Control
Ctrl+Shift+Alt Column (box) selection page up/down
Home / End Go to beginning/end of line +PgUp/PgDn Ctrl+Shift+D Show Debug
Ctrl+Home Go to beginning of file Ctrl+Shift+X Show Extensions
Ctrl+End Go to end of file
Rich languages editing Ctrl+Shift+H Replace in files
Ctrl+ / Scroll line up/down Ctrl+Shift+J Toggle Search details
Alt+PgUp / PgDn Scroll page up/down Ctrl+Space Trigger suggestion Ctrl+Shift+U Show Output panel
Ctrl+Shift+[ Fold (collapse) region Ctrl+Shift+Space Trigger parameter hints Ctrl+Shift+V Open Markdown preview
Ctrl+Shift+] Unfold (uncollapse) region Shift+Alt+F Format document Ctrl+K V Open Markdown preview to the side
Ctrl+K Ctrl+[ Fold (collapse) all subregions Ctrl+K Ctrl+F Format selection Ctrl+K Z Zen Mode (Esc Esc to exit)
Ctrl+K Ctrl+] Unfold (uncollapse) all subregions F12 Go to Definition
Ctrl+K Ctrl+0 Fold (collapse) all regions Alt+F12 Peek Definition Debug
Ctrl+K Ctrl+J Unfold (uncollapse) all regions Ctrl+K F12 Open Definition to the side
F9 Toggle breakpoint
Ctrl+K Ctrl+C Add line comment Ctrl+. Quick Fix
F5 Start/Continue
Ctrl+K Ctrl+U Remove line comment Shift+F12 Show References
Shift+F5 Stop
Ctrl+/ Toggle line comment F2 Rename Symbol
F11 / Shift+F11 Step into/out
Shift+Alt+A Toggle block comment Ctrl+K Ctrl+X Trim trailing whitespace
F10 Step over
Alt+Z Toggle word wrap Ctrl+K M Change file language
Ctrl+K Ctrl+I Show hover

Navigation Editor management Integrated terminal


Ctrl+T Show all Symbols Ctrl+F4, Ctrl+W Close editor Ctrl+` Show integrated terminal
Ctrl+G Go to Line... Ctrl+K F Close folder Ctrl+Shift+` Create new terminal
Ctrl+P Go to File... Ctrl+\ Split editor Ctrl+C Copy selection
Ctrl+Shift+O Go to Symbol... Ctrl+ 1 / 2 / 3 Focus into 1st, 2nd or 3rd editor group Ctrl+V Paste into active terminal
Ctrl+Shift+M Show Problems panel Ctrl+K Ctrl+ / Focus into previous/next editor group Ctrl+ / Scroll up/down
F8 Go to next error or warning Ctrl+Shift+PgUp / PgDn Move editor left/right Shift+PgUp / PgDn Scroll page up/down
Shift+F8 Go to previous error or warning Ctrl+K / Move active editor group Ctrl+Home / End Scroll to top/bottom
Ctrl+Shift+Tab Navigate editor group history
Alt+ / Go back / forward Other operating systems keyboard shortcuts and additional
Ctrl+M Toggle Tab moves focus unassigned shortcuts available at aka.ms/vscodekeybindings

You might also like