This document provides an overview of keyboard shortcuts for Windows in Visual Studio Code for general editing, navigation, rich languages editing, debugging, and using the integrated terminal. Shortcuts are listed for cutting/copying lines, commenting code, formatting selections, navigating files/symbols, stepping through code in the debugger, and more. Many common editing tasks can be performed faster through keyboard shortcuts rather than using the mouse.
This document provides an overview of keyboard shortcuts for Windows in Visual Studio Code for general editing, navigation, rich languages editing, debugging, and using the integrated terminal. Shortcuts are listed for cutting/copying lines, commenting code, formatting selections, navigating files/symbols, stepping through code in the debugger, and more. Many common editing tasks can be performed faster through keyboard shortcuts rather than using the mouse.
This document provides an overview of keyboard shortcuts for Windows in Visual Studio Code for general editing, navigation, rich languages editing, debugging, and using the integrated terminal. Shortcuts are listed for cutting/copying lines, commenting code, formatting selections, navigating files/symbols, stepping through code in the debugger, and more. Many common editing tasks can be performed faster through keyboard shortcuts rather than using the mouse.
This document provides an overview of keyboard shortcuts for Windows in Visual Studio Code for general editing, navigation, rich languages editing, debugging, and using the integrated terminal. Shortcuts are listed for cutting/copying lines, commenting code, formatting selections, navigating files/symbols, stepping through code in the debugger, and more. Many common editing tasks can be performed faster through keyboard shortcuts rather than using the mouse.
Search and replace Keyboard shortcuts for Windows Ctrl+F Find Ctrl+O Ctrl+S Open File... Save Ctrl+H Replace Ctrl+Shift+S Save As... General F3 / Shift+F3 Find next/previous Ctrl+K S Save All Alt+Enter Select all occurences of Find match Ctrl+F4 Close Ctrl+Shift+P, F1 Show Command Palette Ctrl+D Add selection to next Find match Ctrl+K Ctrl+W Close All Ctrl+P Quick Open, Go to File… Ctrl+K Ctrl+D Move last selection to next Find match Ctrl+Shift+T Reopen closed editor Ctrl+Shift+N New window/instance Alt+C / R / W Toggle case-sensitive / regex / whole word Ctrl+K Enter Keep preview mode editor open Ctrl+Shift+W Close window/instance Ctrl+Tab Open next Ctrl+, User Settings Multi-cursor and selection Ctrl+Shift+Tab Open previous Ctrl+K Ctrl+S Keyboard Shortcuts Ctrl+K P Copy path of active file Alt+Click Insert cursor Ctrl+K R Reveal active file in Explorer Basic editing Ctrl+Alt+ ↑ / ↓ Insert cursor above / below Ctrl+K O Show active file in new window/instance Ctrl+U Undo last cursor operation Ctrl+X Cut line (empty selection) Shift+Alt+I Insert cursor at end of each line selected Display Ctrl+C Copy line (empty selection) Ctrl+L Select current line Alt+ ↑ / ↓ Move line up/down Ctrl+Shift+L Select all occurrences of current selection F11 Toggle full screen Shift+Alt + ↓ / ↑ Copy line up/down Ctrl+F2 Select all occurrences of current word Shift+Alt+0 Toggle editor layout (horizontal/vertical) Ctrl+Shift+K Delete line Shift+Alt+→ Expand selection Ctrl+ = / - Zoom in/out Ctrl+Enter Insert line below Shift+Alt+← Shrink selection Ctrl+B Toggle Sidebar visibility Ctrl+Shift+Enter Insert line above Shift+Alt + Column (box) selection Ctrl+Shift+E Show Explorer / Toggle focus Ctrl+Shift+\ Jump to matching bracket (drag mouse) Ctrl+Shift+F Show Search Ctrl+] / [ Indent/outdent line Ctrl+Shift+Alt Column (box) selection Ctrl+Shift+G Show Source Control Home / End Go to beginning/end of line + (arrow key) Ctrl+Shift+D Show Debug Ctrl+Home Go to beginning of file Ctrl+Shift+Alt Column (box) selection page up/down Ctrl+Shift+X Show Extensions Ctrl+End Go to end of file +PgUp/PgDn Ctrl+Shift+H Replace in files Ctrl+↑ / ↓ Scroll line up/down Ctrl+Shift+J Toggle Search details Alt+PgUp / PgDn Scroll page up/down Rich languages editing Ctrl+Shift+U Show Output panel Ctrl+Shift+[ Fold (collapse) region Ctrl+Shift+V Open Markdown preview Ctrl+Space Trigger suggestion Ctrl+Shift+] Unfold (uncollapse) region Ctrl+K V Open Markdown preview to the side Ctrl+K Ctrl+[ Fold (collapse) all subregions Ctrl+Shift+Space Trigger parameter hints Ctrl+K Z Zen Mode (Esc Esc to exit) Ctrl+K Ctrl+] Unfold (uncollapse) all subregions Shift+Alt+F Format document Ctrl+K Ctrl+0 Fold (collapse) all regions Ctrl+K Ctrl+F Format selection Debug Ctrl+K Ctrl+J Unfold (uncollapse) all regions F12 Go to Definition F9 Toggle breakpoint Ctrl+K Ctrl+C Add line comment Alt+F12 Peek Definition F5 Start/Continue Ctrl+K Ctrl+U Remove line comment Ctrl+K F12 Open Definition to the side Shift+F5 Stop Ctrl+/ Toggle line comment Ctrl+. Quick Fix F11 / Shift+F11 Step into/out Shift+Alt+A Toggle block comment Shift+F12 Show References F10 Step over Alt+Z Toggle word wrap F2 Rename Symbol Ctrl+K Ctrl+I Show hover Ctrl+K Ctrl+X Trim trailing whitespace
Navigation Ctrl+K M Change file language Integrated terminal
Ctrl+` Show integrated terminal Ctrl+T Show all Symbols Editor management Ctrl+G Go to Line... Ctrl+Shift+` Create new terminal Ctrl+P Go to File... Ctrl+F4, Ctrl+W Close editor Ctrl+C Copy selection Ctrl+Shift+O Go to Symbol... Ctrl+K F Close folder Ctrl+V Paste into active terminal Ctrl+Shift+M Show Problems panel Ctrl+\ Split editor Ctrl+↑ / ↓ Scroll up/down F8 Go to next error or warning Ctrl+ 1 / 2 / 3 Focus into 1st, 2nd or 3rd editor group Shift+PgUp / PgDn Scroll page up/down Shift+F8 Go to previous error or warning Ctrl+K Ctrl+ ←/→ Focus into previous/next editor group Ctrl+Home / End Scroll to top/bottom Ctrl+Shift+Tab Navigate editor group history Ctrl+Shift+PgUp / PgDn Move editor left/right Alt+ ← / → Go back / forward Ctrl+K ← / → Move active editor group Other operating systems’ keyboard shortcuts and additional unassigned shortcuts available at aka.ms/vscodekeybindings