0% found this document useful (0 votes)
181 views2 pages

Keyboard Shortcuts Visual Studio

This document provides an overview of keyboard shortcuts for macOS and Windows in Visual Studio Code for common editing tasks like find, replace, navigation, debugging, terminal commands, and more. It outlines shortcuts for searching and replacing text, basic editing functions, rich language features, navigation, multi-cursor selection, integrated terminal controls, and managing files. The shortcuts are categorized into sections for general use, editing, navigation, debugging, and file operations.

Uploaded by

Richie Hdez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
181 views2 pages

Keyboard Shortcuts Visual Studio

This document provides an overview of keyboard shortcuts for macOS and Windows in Visual Studio Code for common editing tasks like find, replace, navigation, debugging, terminal commands, and more. It outlines shortcuts for searching and replacing text, basic editing functions, rich language features, navigation, multi-cursor selection, integrated terminal controls, and managing files. The shortcuts are categorized into sections for general use, editing, navigation, debugging, and file operations.

Uploaded by

Richie Hdez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Search and replace ⇧⌘T Reopen closed editor

⌘K Enter Keep preview mode editor open


⌘F Find ⌃Tab / ⌃⇧Tab Open next / previous
Keyboard shortcuts for macOS Replace
⌥⌘F ⌘K P Copy path of active file
⌘G / ⇧⌘G Find next/previous ⌘K R Reveal active file in Finder
⌥Enter Select all occurrences of Find match ⌘K O Show active file in new window/instance
General ⌘D Add selection to next Find match
Move last selection to next Find match
Display
⌘K ⌘D
⇧⌘P, F1 Show Command Palette
⌘P Quick Open, Go to File…
Rich languages editing ⌃⌘F Toggle full screen
⇧⌘N New window/instance ⌥⌘0 Toggle editor layout (horizontal/vertical)
⌘W Close window/instance ⌃Space, ⌘I Trigger suggestion ⌘= / ⇧⌘- Zoom in/out
⌘, User Settings ⇧⌘Space Trigger parameter hints ⌘B Toggle Sidebar visibility
⌘K ⌘S Keyboard Shortcuts ⇧⌥F Format document ⇧⌘E Show Explorer / Toggle focus
⌘K ⌘F Format selection ⇧⌘F Show Search
Go to Definition
Basic editing F12 ⌃⇧G Show Source Control
⌥F12 Peek Definition ⇧⌘D Show Debug
⌘X Cut line (empty selection) ⌘K F12 Open Definition to the side ⇧⌘X Show Extensions
⌘C Copy line (empty selection) ⌘. Quick Fix ⇧⌘H Replace in files
⌥↓ / ⌥↑ Move line down/up ⇧F12 Show References ⇧⌘J Toggle Search details
⇧⌥↓ / ⇧⌥↑ Copy line down/up F2 Rename Symbol ⇧⌘U Show Output panel
⇧⌘K Delete line ⌘K ⌘X Trim trailing whitespace ⇧⌘V Open Markdown preview
⌘Enter / ⇧⌘Enter Insert line below/above ⌘K M Change file language ⌘K V Open Markdown preview to the side
⇧⌘\ Jump to matching bracket ⌘K Z Zen Mode (Esc Esc to exit)
⌘] / ⌘[ Indent/outdent line Navigation
Home / End Go to beginning/end of line
⌘T Show all Symbols Debug
⌘↑ / ⌘↓ Go to beginning/end of file
⌃PgUp / ⌃PgDn Scroll line up/down ⌃G Go to Line... F9 Toggle breakpoint
⌘PgUp /⌘PgDn Scroll page up/down ⌘P Go to File... F5 Start/Continue
⌥⌘[ / ⌥⌘] Fold/unfold region ⇧⌘O Go to Symbol... F11 / ⇧F11 Step into/ out
⌘K ⌘[ / ⌘K ⌘] Fold/unfold all subregions ⇧⌘M Show Problems panel F10 Step over
⌘K ⌘0 / ⌘K ⌘J Fold/unfold all regions F8 / ⇧F8 Go to next/previous error or warning ⇧F5 Stop
⌘K ⌘C Add line comment ⌃⇧Tab Navigate editor group history ⌘K ⌘I Show hover
⌘K ⌘U Remove line comment ⌃- / ⌃⇧- Go back/forward
Toggle Tab moves focus
Integrated terminal
⌘/ Toggle line comment ⌃⇧M
⇧⌥A Toggle block comment
⌥Z Toggle word wrap Editor management ⌃` Show integrated terminal
⌃⇧` Create new terminal
⌘W Close editor ⌘C Copy selection
Multi-cursor and selection ⌘K F Close folder ⌘↑ / ↓ Scroll up/down
⌥ + click Insert cursor ⌘\ Split editor PgUp / PgDn Scroll page up/down
⌥⌘↑ Insert cursor above ⌘1 / ⌘2 / ⌘3 Focus into 1st, 2nd, 3rd editor group ⌘Home / End Scroll to top/bottom
⌥⌘↓ Insert cursor below ⌘K ⌘← / ⌘K ⌘→ Focus into previous/next editor group
⌘U Undo last cursor operation ⌘K ⇧⌘← / ⌘K ⇧⌘→ Move editor left/right
⇧⌥I Insert cursor at end of each line selected ⌘K ← / ⌘K → Move active editor group
⌘L Select current line
⇧⌘L Select all occurrences of current selection File management
⌘F2 Select all occurrences of current word
⌘N New File
⌃⇧⌘→ / ← Expand / shrink selection
⌘O Open File...
⇧⌥ + drag mouse Column (box) selection
⌘S Save
⇧⌥⌘↑ / ↓ Column (box) selection up/down
⇧⌘S Save As...
⇧⌥⌘← / → Column (box) selection left/right
⌥⌘S Save All Other operating systems’ keyboard shortcuts and additional
⇧⌥⌘PgUp Column (box) selection page up
⌘W Close unassigned shortcuts available at aka.ms/vscodekeybindings
⇧⌥⌘PgDn Column (box) selection page down
⌘K ⌘W Close All
Ctrl+M Toggle Tab moves focus File management
Ctrl+N New File
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, Ctrl+I 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

You might also like