Skip to content

↑↓ moveEnter openEsc close

VS Code keyboard shortcuts for Linux

VS Code 1.96 · 138 shortcuts · checked Nov 2026 · Source: Microsoft docs

138 default VS Code shortcuts on Linux, grouped by task.

138 shortcuts
Keys:

General

7 shortcuts
ActionKeys
Show Command PaletteCtrlShiftPorF1
Quick Open, go to fileCtrlP
New windowCtrlShiftN
Close windowCtrlShiftW
Open User SettingsCtrl,
Open the keybindings editorCtrlK,CtrlS
Open Microsoft's shortcut referenceCtrlK,CtrlR

Basic editing

33 shortcuts
ActionKeys
Cut line (empty selection)CtrlX
Copy line (empty selection)CtrlC
Move line downAlt↓
Move line upAlt↑
Copy line downCtrlAltShift↓
Copy line upCtrlAltShift↑
Delete lineCtrlShiftK
Insert line belowCtrlEnter
Insert line aboveCtrlShiftEnter
Jump to matching bracketCtrlShift\
Indent lineCtrl]
Outdent lineCtrl[
Go to beginning of lineHome
Go to end of lineEnd
Go to beginning of fileCtrlHome
Go to end of fileCtrlEnd
Scroll line upCtrl↑
Scroll line downCtrl↓
Scroll page upAltPageUp
Scroll page downAltPageDown
Fold (collapse) regionCtrlShift[
Unfold (uncollapse) regionCtrlShift]
Toggle foldCtrlK,CtrlL
Fold all subregionsCtrlK,Ctrl[
Unfold all subregionsCtrlK,Ctrl]
Fold all regionsCtrlK,Ctrl0
Unfold all regionsCtrlK,CtrlJ
Fold all block commentsCtrlK,Ctrl/
Add line commentCtrlK,CtrlC
Remove line commentCtrlK,CtrlU
Toggle line commentCtrl/
Toggle block commentCtrlShiftA
Toggle word wrapAltZ

Navigation

10 shortcuts
ActionKeys
Show all symbolsCtrlT
Go to lineCtrlG
Go to symbol in fileCtrlShiftO
Show Problems panelCtrlShiftM
Go to next error or warningF8
Go to previous error or warningShiftF8
Navigate editor group historyCtrlShiftTab
Go backCtrlAlt-
Go forwardCtrlShift-
Toggle Tab moves focusCtrlM
ActionKeys
FindCtrlF
ReplaceCtrlH
Find nextFind widget openEnterorF3
Find previousFind widget openShiftEnterorShiftF3
Select all occurrences of find matchFind widget openAltEnter
Toggle case-sensitiveFind widget openAltC
Toggle regexFind widget openAltR
Toggle whole wordFind widget openAltW
ActionKeys
Insert cursor aboveAltShift↑
Insert cursor belowAltShift↓
Undo last cursor operationCtrlU
Insert cursor at end of each selected lineAltShiftI
Select current lineCtrlL
Select all occurrences of current selectionCtrlShiftL
Add selection to next find matchCtrlD
Select allCtrlA
Expand selectionAltShift→
Shrink selectionAltShift←
Column (box) selection downCtrlAltShift↓
ActionKeys
Trigger suggestionCtrlSpaceorCtrlI
Trigger parameter hintsCtrlShiftSpace
Format documentCtrlShiftI
Format selectionCtrlK,CtrlF
Go to definitionF12
Peek definitionCtrlShiftF10
Open definition to the sideCtrlK,F12
Quick FixCtrl.
Show referencesShiftF12
Rename symbolF2
Trim trailing whitespaceCtrlK,CtrlX
Change file languageCtrlK,M

Editor management

10 shortcuts
ActionKeys
Close editorCtrlW
Close folderCtrlK,F
Split editorCtrl\
Focus into 1st, 2nd or 3rd editor groupCtrl1
Focus into previous editor groupCtrlK,Ctrl←
Focus into next editor groupCtrlK,Ctrl→
Move editor leftCtrlShiftPageUp
Move editor rightCtrlShiftPageDown
Move active editor group leftCtrlK,←
Move active editor group rightCtrlK,→

File management

14 shortcuts
ActionKeys
Open folderCtrlK,CtrlO
New fileCtrlN
Open fileCtrlO
SaveCtrlS
Save asCtrlShiftS
Save allCtrlK,S
Close all editorsCtrlK,CtrlW
Reopen closed editorCtrlShiftT
Keep preview mode editor openCtrlK,Enter
Open next editorCtrlTab
Open previous editorCtrlShiftTab
Copy path of active fileCtrlK,P
Reveal active file in Explorer or FinderCtrlK,R
Show active file in new windowCtrlK,O

Display

17 shortcuts
ActionKeys
Toggle full screenF11
Toggle Zen ModeCtrlK,Z
Zoom inCtrl=
Zoom outCtrl-
Toggle Sidebar visibilityCtrlB
Show ExplorerCtrlShiftE
Show Source ControlCtrlShiftG
Show Run and DebugCtrlShiftD
Show ExtensionsCtrlShiftX
Replace in filesCtrlShiftH
Toggle Search detailsCtrlShiftJ
Show Output panelCtrlK,CtrlH
Toggle panelCtrlJ
Show Debug ConsoleCtrlShiftY
Open Markdown previewCtrlShiftV
Open Markdown preview to the sideCtrlK,V

Debug

8 shortcuts
ActionKeys
Toggle breakpointF9
Start or continue debuggingF5
Start without debuggingCtrlF5
Stop debuggingShiftF5
Step intoF11
Step outShiftF11
Step overF10
Show hoverCtrlK,CtrlI
ActionKeys
Toggle integrated terminalCtrl`
Create new terminalCtrlShift`
Scroll up (terminal)Terminal focusedCtrlShift↑
Scroll down (terminal)Terminal focusedCtrlShift↓
Scroll page up (terminal)Terminal focusedShiftPageUp
Scroll page down (terminal)Terminal focusedShiftPageDown
Scroll to top (terminal)Terminal focusedCtrlHome
Scroll to bottom (terminal)Terminal focusedCtrlEnd

These are the default Visual Studio Code key bindings on Linux, from Microsoft's official list for version 1.96. Shortcuts that exist only on another system are left out here; the all-systems view shows every binding side by side.

Other systems: VS Code shortcuts for Mac, VS Code shortcuts for Windows. Or print the VS Code cheat sheet.