Home News Update How-To Guides Detail article

Complete Visual Studio Code Shortcuts Guide for Windows - Boost Your Productivity

Discover the full list of Visual Studio Code shortcuts for Windows. Enhance your coding efficiency and workflow with this comprehensive guide to keyboard shortcuts in VS Code.
Complete Visual Studio Code Shortcuts Guide for Windows - Boost Your Productivity

Here is a detailed list of Visual Studio Code keyboard shortcuts for Windows, organized by categories to help you navigate, edit, and manage your projects more efficiently:

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 + Shift + W
  • Reopen Closed Editor: Ctrl + Shift + T
  • Exit: Alt + F4

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 + F4
  • 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 + Y
  • 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 + PageDown
  • Previous Editor in Group: Ctrl + PageUp
  • 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 + PageDown
  • Focus Previous Terminal: Ctrl + PageUp
  • 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: Alt + Shift + 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 should cover most of the tasks you will encounter while using Visual Studio Code on Windows. They are designed to help you work more efficiently and streamline your development process. If you want to customize these shortcuts or explore more options, you can go to File > Preferences > Keyboard Shortcuts.

Download pdf file full Keyboard Shortcuts for Windows