Skip to content

Instantly share code, notes, and snippets.

@MajhiRockzZ
Created March 30, 2020 19:56
Show Gist options
  • Save MajhiRockzZ/2c512f7fc3536d2a4888f79e8407986e to your computer and use it in GitHub Desktop.
Save MajhiRockzZ/2c512f7fc3536d2a4888f79e8407986e to your computer and use it in GitHub Desktop.
VS Code | Tips and Tricks ๐ŸŽน

VS Code | Tips and Tricks ๐ŸŽน

  • Command palette : Ctrl + Shift + P
  • Quick open : Ctrl + P ๐ŸŽ ?
  • Open recent : Ctrl + R
  • Errors and warning : Ctrl + Shift + M
  • Change language mode : Ctrl + K M
  • Change theme : Ctrl + K Ctrl + T
  • Customize Shortcuts : Ctrl + K Ctrl + S
  • Open settings : Ctrl + ,
  • Extensions : Ctrl + Shift + X
  • Integrated terminal : Ctrl + `
  • Toggle sidebar : Ctrl + B
  • Toggle panel : Ctrl + J
  • Zen mode : Ctrl + K Z ๐ŸŽ (Esc X 2)
  • Side by side : Ctrl + \
    • Switch between editors : Ctrl + 1, Ctrl + 2, Ctrl+3
  • Explorer window : Ctrl + Shift + E
  • Create or open file : Ctrl + Click
  • Navigation history :
    • Entire history : Ctrl + Tab
    • Back : Alt + Left
    • Forward : Alt + Right
  • Multi cursor selectin : Alt + Click
    • Ctrl + Alt + Up or Ctrl + Alt + Down
  • Add cursor to all occurrences : Ctrl + Shift + L
  • Add cursor to next occurrence : Ctrl + D
  • Column (box) selectin : Shift + Alt + Drag
  • Fast scrolling : Alt + Scroll Up/Down
  • Copy line up/down : Shift + Alt + Up/Down
  • Move line up/down : Alt + Up/Down
  • Shrink/expand selection : Shift + Alt + Left/Right
  • Go to symbol : Ctrl + Shift + O : Ctrl + T (workspace)
  • Navigate to line : Ctrl + G
  • Undo cursor position : Ctrl + U
  • Trim whitespace : Ctrl + K Ctrl + X
  • Code formatting : Ctrl + K Ctrl + F
    • Shift + Alt + F**
  • Code folding : Ctrl + Shift * [ ]
    • Ctrl + K Ctrl + 0
    • Ctrl + K Ctrl + J
    • Ctrl + K Ctrk + /
  • Select current line : Ctrl + L
  • Open MD preview : Ctrl + Shift + V
    • Ctrl + K V (side by side)
  • Git integrations : Ctrl + Shift + G
  • Block selection : Ctrl + Shift + Click (special)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment