Lesson 16 of 22 – Visual Studio Code Shortcut Keys
80%

Visual Studio Code Shortcut Keys

Visual Studio Code (VS Code) shortcut keys help programmers write, edit, and manage code quickly. These shortcuts improve coding speed and productivity.

Note: Most of these shortcuts work on Windows versions of VS Code.
What are VS Code Shortcut Keys?

VS Code shortcut keys are keyboard combinations used to perform coding and editing tasks without using the mouse.

  • Speed up coding.
  • Improve productivity.
  • Reduce mouse usage.
  • Easy project navigation.
Common VS Code Shortcut Keys
Shortcut Function
Ctrl + N Create a new file.
Ctrl + O Open a file.
Ctrl + S Save the current file.
Ctrl + Shift + S Save As.
Ctrl + P Quick Open files.
Ctrl + W Close the current file.
Editing Shortcut Keys
Shortcut Function
Ctrl + C Copy.
Ctrl + X Cut.
Ctrl + V Paste.
Ctrl + Z Undo.
Ctrl + Y Redo.
Ctrl + A Select all.
Ctrl + / Comment or uncomment code.
Navigation and Coding Shortcut Keys
Shortcut Function
Ctrl + F Find text.
Ctrl + H Find and replace.
Ctrl + G Go to line.
Ctrl + Shift + P Open Command Palette.
Ctrl + Shift + N Open new VS Code window.
Ctrl + Shift + E Open Explorer.
Ctrl + Shift + F Search across files.
F5 Start debugging.
F8 Go to next error or warning.
Advantages of VS Code Shortcut Keys
  • Increase coding speed.
  • Reduce mouse usage.
  • Improve workflow.
  • Navigate projects quickly.
  • Easy debugging.
  • Boost productivity.
  • Useful for programmers and students.
Key Points
  • Ctrl + P quickly opens files.
  • Ctrl + / comments code.
  • Ctrl + Shift + P opens the Command Palette.
  • Ctrl + G goes to a specific line.
  • Ctrl + Shift + E opens Explorer.
  • Ctrl + Shift + F searches all files.
  • F5 starts debugging.
  • VS Code shortcuts improve coding efficiency.

🧠 Quiz

Which shortcut key opens the Command Palette in VS Code?