Skip to content

Instantly share code, notes, and snippets.

@HansKre
Last active August 7, 2023 18:00
Show Gist options
  • Save HansKre/01a9979b7152fd8e21cf7be8d5589ebe to your computer and use it in GitHub Desktop.
Save HansKre/01a9979b7152fd8e21cf7be8d5589ebe to your computer and use it in GitHub Desktop.
VSCode

VSCode Shortcuts

Daily Shortcuts

Name Windows Mac
View: Move Editor into Previous Group ctrl+alt+LeftArrow
View: Move Editor into Next Group ctrl+alt+RightArrow
Git: Open Changes ctrl+alt+d
Git: Stage Changes ctrl+alt+g
Format Document ctrl+alt+f
Organize Imports ctrl+alt+i
Add Cursor Above ctrl+alt+UpArrow
Add Cursor Below ctrl+alt+DownArrow
- - -
View: View Source Control ctrl+shift+g
View: Show Explorer ctrl+shift+e
Termin: Create New Terminal ctrl+shift+ö
Search: Find in Files ctrl+shift+f
- - -
File: Open Recent (opens Project in new Editor) ctrl+r, ctrl+r
View: Toggle Primary Side Bar Visibility ctrl+b
View: Split Editor ctrl+^
Add Selectio To Next Find Match ctrl+D
View: Focus First Editor Group ctrl+1
View: Focus Second Editor Group ctrl+2
View: Focus Third Editor Group ctrl+3
Find Next Selection ctrl+F3
- - -
Git: Resolve in Merge Editor ctrl+shift+alt+m
Git: Complete Merge ctrl+shift+alt+c
Git: Open File ctrl+shift+alt+o
cursorEndSelect ctrl+shift+alt+RightArrow
cursorEndSelect shift+end
cursorHomeSelect ctrl+shift+alt+LeftArrow
cursorHomeSelect shift+home (pos1)
- - -
Copy Line Up shift+alt+UpArrow
Copy Line Down shift+alt+DownArrow
- - -
Go Back alt+LeftArrow
Go Forward alt+RightArrow
Terminal: Focus Previous Terminal in Terminal Group alt+LeftArrow
Terminal: Focus Next Terminal in Terminal Group alt+RightArrow
- - -
View: Toggle Editor Group Sizes ctrl+k Space

Shortcuts to learn

Name Windows Mac
Find Previous shift+Enter
Go to Symbol in Editor ctrl+shift+o
Abracadabra: Toggle braces ctrl+shift+7
Select All Occurrences of Find Match ctrl+shift+L
Quick Select: Select outside curly brackets ctrl+shift+alt+0 , shift+alt+right-arrow
(Select entire function block)
Insert Line Above ctrl+shift+Enter
Insert Line Below ctrl+Enter
Search: findInFolder ctrl+shift+e, arrows to folder,
selecter with enter, shift+alt+f
Replace ctrl+h
Find in Files ctrl+shift+f
Replace in Files ctrl+shift+h
cursorHome home (pos1)
Alternative?
cursorEnd end
Alternative?

Snippets

  • dar - destructure array
  • dob - destructure object
  • rafc - react arrow function component
  • sto - setTimeout
  • sti - setInterval
  • fof - for of loop
  • exd - exportDestructing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment