VS Code Keyboard Shortcuts For Linux (PDF Download)

Linux is an open-source operating system. Many developers use Linux because you can gain full access to your machine if you use it. If you are a programmer and using VS Code on your Linux machine then these shortcuts are going to save your time.

VS Code Linux

General

WorkKeyboard Shortcut
Show Command PaletteCtrl+Shift+P, F1
Quick Open, Go to FileCtrl+P
New window/instanceCtrl+Shift+N
Close window/instanceCtrl+W
User SettingsCtrl+,
Keyboard ShortcutsCtrl+K Ctrl+S

Basic editing

WorkKeyboard Shortcut
Cut line(empty selection)Ctrl+X
Copy line(empty selection)Ctrl+C
Move line down/upAlt+↓/↑
Delete lineCtrl+Shift+K
Insert line below/aboveCtrl+Enter/
Ctrl+Shift+Enter
Jump to matching bracketCtrl+Shift+
Indent/Outdent lineCtrl+]/Ctrl+[
Go to beginning/end of lineHome/End
Go to beginning/end of fileCtrl+Home/End
Scroll line up/downCtrl+↑/↓
Scroll page up/downAlt+PgUp/PgDn
Fold/unfold regionCtrl+Shift+[ /  ]
Fold/unfold all subregionsCtrl+K Ctrl+[ /  ]
Fold/Unfold all regionsCtrl+K Ctrl+0/Ctrl+K Ctrl+J
Add line commentCtrl+K Ctrl+C
Remove line commentCtrl+K Ctrl+U
Toggle line commentCtrl+/
Toggle block commentCtrl+Shift+A
Toggle word wrapAlt+Z

Rich languages editing

WorkKeyboard Shortcut
Trigger suggestionCtrl+Space
Trigger parameter hintsCtrl+Shift+Space
Format documentCtrl+Shift+I
Format selectionCtrl+K Ctrl+F
Go to DefinitionF12
Peek DefinitionCtrl+Shift+F10
Open Definition to the sideCtrl+K F12
Quick FixCtrl+.
Show ReferencesShift+F12
Rename SymbolF2
Trim trailing whitespaceCtrl+K Ctrl+X

Multi-cursor and selection

WorkKeyboard Shortcut
Insert cursor*Alt+Click
Insert cursor above/belowShift+Alt+↑/↓
Undo last cursor operationCtrl+U
Insert cursor at end of each line selectedShift+Alt+I
Select current lineCtrl+L
Select all occurrences of the current selectionCtrl+Shift+L
Select all occurrences of the current wordCtrl+F2
Expand selectionShift+Alt+→
Shrink selectionShift+Alt+←
Column(box)selectionShift+Alt+drag mouse

Display

WorkKeyboard Shortcut
Toggle fullscreenF11
Toggle editor layout(horizontal/vertical)Shift+Alt+0
Zoom in/outCtrl+=/ -
Toggle Sidebar visibilityCtrl+B
Show Explorer/Toggle focusCtrl+Shift+E
Show SearchCtrl+Shift+F
Show Source ControlCtrl+Shift+G
Show DebugCtrl+Shift+D
Show ExtensionsCtrl+Shift+X
Replace in filesCtrl+Shift+H
Toggle Search detailsCtrl+Shift+J
Open new command prompt/terminalCtrl+Shift+C
Show Output panelCtrl+K Ctrl+H
Open Markdown previewCtrl+Shift+V
Open Markdown preview to the sideCtrl+K V

Search and replace

WorkKeyboard Shortcut
FindCtrl+F
ReplaceCtrl+H
Find next/previousF3/Shift+F3
Select all occurrences of Find matchAlt+Enter
Add selection to next Find matchCtrl+D

Navigation

WorkKeyboard Shortcut
Show all SymbolsCtrl+T
Go to Line...Ctrl+G
Go to File...Ctrl+P
Go to Symbol...Ctrl+Shift+O
Show Problems panelCtrl+Shift+M
Go to next error or warningF8
Go to previous error or warningShift+F8
Navigate editor group historyCtrl+Shift+Tab
Go backCtrl+Alt+-
Go forwardCtrl+Shift+-
Toggle Tab moves focusCtrl+M

Editor management

WorkKeyboard Shortcut
Close editorCtrl+W
Close folderCtrl+K F
Split editorCtrl+
Focus into 1st,2nd,3rdeditor groupCtrl+1/ 2/3
Focus into previous editor groupCtrl+K Ctrl+←
Focus into next editor groupCtrl+K Ctrl+→
Move editor leftCtrl+Shift+PgUp
Move editor rightCtrl+Shift+PgDn
Move active editor group left/upCtrl+K ←

File management

WorkKeyboard Shortcut
New FileCtrl+N
Open File...Ctrl+O
SaveCtrl+S
Save As...Ctrl+Shift+S
CloseCtrl+W
Close AllCtrl+K Ctrl+W
Reopen closed editorCtrl+Shift+T
Keep preview mode editor openCtrl+K Enter
Open nextCtrl+Tab
Open previousCtrl+Shift+Tab
Copy path of active fileCtrl+K P
Reveal active file in ExplorerCtrl+K R
Show active file in new window/instanceCtrl+K O

Debug

WorkKeyboard Shortcut
Toggle breakpointF9
Start/ContinueF5
Step into/outF11/Shift+F11
Step overF10
StopShift+F5

Integrated terminal

WorkKeyboard Shortcut
Show integrated terminalCtrl+`
Create new terminalCtrl+Shift+`
Copy selectionCtrl+Shift+C
Paste into active terminalCtrl+Shift+V
Scroll up/downCtrl+Shift+↑/↓
Scroll page up/downShift+PgUp/PgDn
Scroll to top/bottomShift+Home/End

 If you need the full PDF then click here to download it. It was created by the VS Code team. Check out our other articles about VS Code. Read how you can format code very easily in VS Code.

Post a Comment (0)
Previous Post Next Post