Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 1.33 KB

VSCode_cheat_sheet.md

File metadata and controls

35 lines (32 loc) · 1.33 KB

VSCode Cheat Sheet

  • Open command pallete: Ctrl/cmd + Shift + P

Search for any command

Global commands

  1. Toggle sidebar: ctrl/cmd + B
  2. Toggle Terminal: ctrl/cmd + backtick
  3. Clear the terminal: ctrl/cmd + K
  4. Open settings: ctrl/cmd + ,
  5. Quick open a file: ctrl/cmd + P
  6. Tab through open files: ctrl + tab
  7. Move file to split window: Ctrl/cmd + \
  8. Close file: Ctrl/cmd + W
  9. Search file: Ctrl/cmd + F
  10. Replace file: Ctrl/cmd + H
  11. Global Search: Ctrl/cmd + Shift + F
  12. Global Replace: Ctrl/cmd + Shift + H

Navigate Code

  1. Zen mode: ctrl/cmd + K Z

Double ESC to leave or ctrl/cmd + K Z again

  1. Toggle comments: Ctrl/cmd + /
  2. Navigate Text: Hold down CTRL + LEFT or RIGHT
  3. Move a line of code: ALT + UP or DOWN
  4. Copy, cut and paste: ctrl+c, ctrl+v, ctrl+x

For a whole line, just keep the cursor on the line

  1. Duplicate line: Shift+option+up/down or Shift+alt+up/down
  2. Mutiple cursors: Ctrl+cmd + click
  3. Select word: Ctrl/cmd + D

To select current word is CTRL + D, but to select subsequent same words just hit CTRL + D again.

  1. Select all instance of a selected word: Ctrl/cmd + Shift + L
  2. Rename symbol: F2
  3. Go to symbol: ctrl/cmd + Shift + o
  4. Jump to function defination: ctrl/cmd + click