Visual Studio Code Shortcuts
I recently started using Visual Studio Code editor. As I was getting familiar with the tool, I compiled a very short list of shortcuts that I used more frequently.
Here are the Top 10 of my most frequently used Shortcuts
Quick Open — Quickly open files.
Keyboard Shortcut: Ctrl+P, and start typing name of the file
Open Recent — Navigate between recently opened folders and workspaces.
Keyboard Shortcut: Ctrl+R
Simultaneous Editing — multiple cursors.
Set multiple cursors for fast simultaneous(independent) edits using Alt+Click
Navigate Forward/Backward Ctrl+–/Ctrl+Shift+–
Move from one location to another within multiple open files by using the keyboard sequence Ctrl+– to move to the previous location, and then you can return using Ctrl+Shift+–
Command Palette — Access all available commands based on your current context.
Keyboard Shortcut: Ctrl+Shift+P Type ? to view commands suggestions.
Move Code Alt+Up/Down
From your current cursor position, use the Alt+Up-Arrow keys, the line of code you’ve selected moves up. If you use the Alt+Down-Arrow keys, the line of code selected moves down.
Create Collapsible Region Ctrl+M+H / Ctrl+M+U
Select a block of code and use Ctrl+M+H, to turn that selection into a collapsible/expandable region. The key sequence Ctrl+M+U will remove the collapsible region.
Comment Code Block Ctrl+K+C/Ctrl+K+U
If you select a block of code and use the key sequence Ctrl+K+C, you can comment out the section of code. Use the key sequence Ctrl+K+U to uncomment the code.
Peek Definition Alt+F12
For a quick look, use the keyboard shortcut — Alt+F12 — for a preview of the method being called inline. You can use the Esc key to close the preview.
A Go to References search can be made using Shift+F12
Errors and Warnings
View Errors: Ctrl+Shift+M . Cycle through errors with F8 or Shift+F8
This is the first of a series that I plan to publish.
NOTE: Here is a link to the Official Visual Studio Code editor Documentation