Skip to content

Instantly share code, notes, and snippets.

@jimathyp
Last active August 2, 2022 23:32
Show Gist options
  • Select an option

  • Save jimathyp/e6163a8134dc42de39ce71972557b1df to your computer and use it in GitHub Desktop.

Select an option

Save jimathyp/e6163a8134dc42de39ce71972557b1df to your computer and use it in GitHub Desktop.

VS Code Shortcuts

Show shortcuts - Ctrl K, Ctrl S

Duplicate workspace - Ctrl Shift P

Open file in new window - Ctrl K, release, O

https://newbedev.com/visual-studio-code-open-tab-in-new-window

Multi line cursor from selection - Select all, Alt+Shift+I makes cursor at end of all lines

Code formatting


Ctrl K F, Ctrl K D

Shift ALt F

Ctrl Shift P, search format

Save file as type, sleect file type lower right

Add beautify extension for shell

Cursors and multi-line ops

Multiline from selection: Ctrl A, Alt + Shift + I

Block select Hold Shift + Alt, drag mouse cursor

Expand selection Alt Shift LArrow/RArrow

Select line Ctrl L

Selecting blocks Ctrrl Shift P, "balance" or "select to bracket"

https://stackoverflow.com/questions/44956653/selecting-block-of-code-in-visual-studio-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment