Home News Update How-To Guides Detail article

Complete Visual Studio Code Shortcuts Guide for Linux - Maximize Your Productivity

Access the complete list of Visual Studio Code shortcuts for Linux. Learn how to use keyboard shortcuts to improve your coding efficiency and streamline your workflow in VS Code.
Complete Visual Studio Code Shortcuts Guide for Linux - Maximize Your Productivity

Here's a comprehensive list of Visual Studio Code keyboard shortcuts for Linux, organized by categories to boost your productivity and streamline your coding process:

General

  • Command Palette: Ctrl + Shift + P or F1
  • Quick Open: Ctrl + P
  • New File: Ctrl + N
  • Open File: Ctrl + O
  • Save: Ctrl + S
  • Save As: Ctrl + Shift + S
  • Save All: Ctrl + K S
  • Close Editor: Ctrl + W
  • Close Folder/Window: Ctrl + K F
  • Reopen Closed Editor: Ctrl + Shift + T
  • Exit: Ctrl + Q

File Management

  • New File: Ctrl + N
  • Open File...: Ctrl + O
  • Save: Ctrl + S
  • Save As...: Ctrl + Shift + S
  • Save All: Ctrl + K S
  • Close: Ctrl + W
  • Close All: Ctrl + K Ctrl + W
  • Reopen Closed Editor: Ctrl + Shift + T
  • Copy Path of Active File: Ctrl + K P
  • Reveal Active File in Explorer: Ctrl + K R
  • Focus into Side Bar: Ctrl + 0
  • Focus into Editor Group: Ctrl + 1, Ctrl + 2, Ctrl + 3

Editing

  • Cut Line (without selection): Ctrl + X
  • Copy Line (without selection): Ctrl + C
  • Move Line Up/Down: Alt + Up/Down
  • Copy Line Up/Down: Shift + Alt + Up/Down
  • Delete Line: Ctrl + Shift + K
  • Insert Line Below: Ctrl + Enter
  • Insert Line Above: Ctrl + Shift + Enter
  • Jump to Matching Bracket: Ctrl + Shift + \
  • Indent Line: Ctrl + ]
  • Outdent Line: Ctrl + [
  • Go to Beginning of Line: Home
  • Go to End of Line: End
  • Select All: Ctrl + A
  • Undo: Ctrl + Z
  • Redo: Ctrl + Shift + Z
  • Find: Ctrl + F
  • Replace: Ctrl + H
  • Toggle Line Comment: Ctrl + /
  • Toggle Block Comment: Shift + Alt + A
  • Find Next: F3
  • Find Previous: Shift + F3
  • Select All Occurrences of Find Match: Ctrl + Shift + L
  • Add Selection to Next Find Match: Ctrl + D
  • Add Cursor Above/Below: Ctrl + Alt + Up/Down

Search and Replace

  • Find: Ctrl + F
  • Find Next: F3
  • Find Previous: Shift + F3
  • Replace: Ctrl + H
  • Replace in Files: Ctrl + Shift + H
  • Find in Files: Ctrl + Shift + F

Navigation

  • Quick Open, Go to File: Ctrl + P
  • Go to Symbol: Ctrl + Shift + O
  • Go to Definition: F12
  • Peek Definition: Alt + F12
  • Open Definition to the Side: Ctrl + K F12
  • Go to Implementation: Ctrl + F12
  • Peek Implementation: Shift + Alt + F12
  • Navigate Editor Group History: Ctrl + Shift + Tab
  • Next Editor: Ctrl + Tab
  • Previous Editor: Ctrl + Shift + Tab
  • Next Editor in Group: Ctrl + Alt + Right
  • Previous Editor in Group: Ctrl + Alt + Left
  • Navigate Back: Alt + Left
  • Navigate Forward: Alt + Right
  • Go to Line...: Ctrl + G

Refactoring

  • Rename Symbol: F2
  • Refactor: Ctrl + Shift + R

Debugging

  • Start Debugging: F5
  • Run without Debugging: Ctrl + F5
  • Stop Debugging: Shift + F5
  • Restart Debugging: Ctrl + Shift + F5
  • Step Over: F10
  • Step Into: F11
  • Step Out: Shift + F11
  • Continue: F5
  • Toggle Breakpoint: F9
  • Show Hover: Ctrl + K Ctrl + I

Integrated Terminal

  • Open Terminal: Ctrl + `
  • New Terminal: Ctrl + Shift + `
  • Focus Next Terminal: Ctrl + Down
  • Focus Previous Terminal: Ctrl + Up
  • Kill Terminal: Ctrl + C
  • Clear Terminal: Ctrl + K

View

  • Toggle Full Screen: F11
  • Toggle Zen Mode: Ctrl + K Z
  • Toggle Sidebar Visibility: Ctrl + B
  • Toggle Panel: Ctrl + J
  • Show Explorer / Toggle Focus: Ctrl + Shift + E
  • Show Search: Ctrl + Shift + F
  • Show Source Control: Ctrl + Shift + G
  • Show Debug: Ctrl + Shift + D
  • Show Extensions: Ctrl + Shift + X
  • Show Output: Ctrl + Shift + U
  • Show Problems: Ctrl + Shift + M

Split Editor

  • Split Editor: Ctrl + \
  • Focus into Editor Group (1, 2, 3): Ctrl + 1 / Ctrl + 2 / Ctrl + 3
  • Move Editor into Next Group: Ctrl + K Ctrl + Right
  • Move Editor into Previous Group: Ctrl + K Ctrl + Left
  • Toggle Split Layout: Shift + Alt + 0

Folding

  • Fold: Ctrl + Shift + [
  • Unfold: Ctrl + Shift + ]
  • Fold All: Ctrl + K Ctrl + 0
  • Unfold All: Ctrl + K Ctrl + J
  • Fold Level (1-9): Ctrl + K Ctrl + 1 / Ctrl + K Ctrl + 2 / ...

These shortcuts will help you navigate and edit your code more efficiently in Visual Studio Code on Linux. You can customize these shortcuts by visiting File > Preferences > Keyboard Shortcuts.

Download PDF File:  Visual Studio Code Shortcuts Guide for Linux