Vs-code-shortcut

Visual Studio Code Shortcuts Cheat-Sheet (Linux)

  • Open File: Ctrl + O
  • Go to Line: Ctrl + G
  • Go to Symbol: Ctrl + Shift + O
  • Navigate Back: Alt + Left Arrow
  • Navigate Forward: Alt + Right Arrow

Editing

  • Cut Line: Ctrl + X
  • Copy Line: Ctrl + C
  • Paste Line Below: Ctrl + V
  • Undo: Ctrl + Z
  • Redo: Ctrl + Y
  • Toggle Comment: Ctrl + /
  • Indent Line: Ctrl + ]
  • Outdent Line: Ctrl + [
  • Duplicate Line: Shift + Alt + Down Arrow
  • Delete Line: Ctrl + Shift + K
  • Select All Occurrences: Ctrl + Shift + L
  • Find: Ctrl + F
  • Replace: Ctrl + H

Code Manipulation

  • Format Document: Shift + Alt + F
  • Organize Imports: Ctrl + Shift + O
  • Rename Symbol: F2
  • Toggle Sidebar: Ctrl + B
  • Toggle Terminal: Ctrl + `
  • Toggle Line Comment: Ctrl + /

Integrated Terminal

  • New Terminal: Ctrl + `
  • Switch Terminal Tabs: Ctrl + PgUp / PgDown
  • Copy Selection: Ctrl + Shift + C
  • Paste into Terminal: Ctrl + Shift + V
  • Clear Terminal: Ctrl + L

File Management

  • New File: Ctrl + N
  • Save: Ctrl + S
  • Save As: Ctrl + Shift + S
  • Close File: Ctrl + W
  • Close All Files: Ctrl + K, Ctrl + W

Multi-Cursor Editing

  • Add Cursor Above: Ctrl + Alt + Up Arrow
  • Add Cursor Below: Ctrl + Alt + Down Arrow
  • Column (Box) Selection: Alt + Click and Drag
  • Multi-Cursor Selection: Ctrl + Alt + Click

Search and Replace

  • Find in Files: Ctrl + Shift + F
  • Replace in Files: Ctrl + Shift + H
  • Toggle Case-Sensitive Search: Alt + C

Code Navigation

  • Go to Definition: F12
  • Go to Type Definition: Ctrl + F12
  • Go to Declaration: Ctrl + Click
  • Peek Definition: Alt + F12
  • Find All References: Shift + F12

Debugging

  • Start Debugging: F5
  • Step Over: F10
  • Step Into: F11
  • Step Out: Shift + F11
  • Continue: F5
  • Toggle Breakpoint: F9

Version Control

  • Source Control View: Ctrl + Shift + G
  • Commit Changes: Ctrl + Enter
  • Push to Remote: Ctrl + Shift + Enter
  • Pull from Remote: Ctrl + Shift + P

Extensions

  • Install Extension: Ctrl + Shift + X
  • Toggle Extensions Sidebar: Ctrl + Shift + X

General

  • Command Palette: Ctrl + Shift + P
  • Toggle Full Screen: F11
  • Zoom In: Ctrl + Plus (+)
  • Zoom Out: Ctrl + Minus (-)
  • Toggle Sidebar Visibility: Ctrl + B

Remember, these shortcuts can significantly speed up your workflow in Visual Studio Code. Feel free to customize and explore additional shortcuts based on your preferences and coding tasks.

For a complete list of shortcuts and customization options, you can visit the official Visual Studio Code Keyboard Shortcuts documentation. Happy coding!