Handy VS Code shortcuts

I have compiled a list of all the shortcuts I found to be super useful when I first began to use VS Code. These can all be modified by going to keybindings (Keyboard Shortcuts) in VS Code settings to modify em. However, if you are just starting and are unfamiliar with utilizing shortcuts this is a great guide for you! You will quickly learn how useful shortcuts are and the amount of time you will save. Let’s dive right in shall we!

Keyboard Shortcuts

For Windows on Mac you can usually replace the CTRL with CMD and they will work..

Ctrl+Shift+P 
  • Command Palette – Access all available commands based on your current context
Ctrlt+P
  • Quick Open – Open files  Ctrlt+P && open multiple files by using the right arrow key.
Ctrl+Shift+M
  • New Window – Opens a new window instance
Ctrl+Shift+M
  • Status Bar  – View errors and warnings.  && run through the various errors and warnings with  Shift+F8
Ctrl+K Ctrl+F 
  • Format Selected Code – Formats the selected piece of code
Shift+Alt+F
  • Format Code – Formats the entire file
Ctrl+I
  • Select Line – Selects the current line entirely
Ctrl+Shift+V
  • Markdown Preview – Opens the markdown file in preview mode
Ctrl+K V
  • Markdown Preview Side By Side – Opens the markdown file side by side with the current markdown file and displays with live updates/sync
Ctrl+K Ctrl+X
  • Trim Trailing Whitespace
Ctrl+B
  • Toggle Side Bar
Ctrl+`

 

  • Open Terminal Opens terminal within VS Code
Ctrl+ Shift + `
  • Open New Terminal Opens a new terminal within VS Code (allows for multiple terminals within VS Code)
Ctrl+K Z
  • Enables Zenmode – Makes the VS Code application fullscreen – for less distractions!
Ctrl+Shift+G
  • Git Integration – Opens the Git Integration in the Side Bar.
Ctrl+K M
  • Language Mode – Switch the language on the fly
Ctrl+Shift+X
  • Open Extensions – Opens the Extensions section in the Sidebar – so go check out some sweet VS Code Extensions you can add right into VS Code.

Last but not lease!

Ctrl+K Ctrl+S
  • Keyboard shortcuts – Modify your keyboard shortcuts here! Ctrl+K CTRL+S

You can also find a nice little PDF of all VS Code pre-set shortcuts, out of the box, from VS Code at https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s