The following table provides an overview of some of the shortcut key combinations that you can use when you are working in Visual Studio Code. For a complete overview, see Key Bindings for Visual Studio Code.
General in Visual Studio Code
Keyboard Shortcut
Action
Ctrl+Shift+P
Show All Commands
Alt+F6
Download source code
Alt+A Alt+L
AL Go! Generates a HelloWorld project
Ctrl+Shift+B
Compile and Package
F5
Compile, Package, and Publish
Ctrl+F5
Build and publish without debugging. Note: The keyboard shortcut has a different meaning when debugging.
F6
Publish and open Designer
Ctrl+F2
Update the compiler used by the service tier(s)
Editing in Visual Studio Code
Keyboard Shortcut
Action
Ctrl+Space
Look up suggestions for the current object
Ctrl+X
Cut
Ctrl+C
Copy
Ctrl+V
Paste
Ctrl+F2
Select all occurrences
F12
Go to definition
Alt+F12
Peek definition
Shift+F12
Show references
Ctrl+Shift+Space
Look up parameter hints
Ctrl+K Ctrl+C
Add line comment
Ctrl+K Ctrl+U
Remove line comment
Ctrl+Shift+P
Show all commands
F2
Rename (use Enter to rename, use Shift+Enter to preview)
Shift+Alt+E
Look up events and insert event subscriber in code for a selected event.
Errors in Visual Studio Code
Keyboard Shortcut
Action
F8
Move to the next error or warning
Shift+F8
Move to the previous error or warning
Compile and publish in Visual Studio Code
Keyboard Shortcut
Action
Ctrl+Shift+B
Compile and build the solution
Ctrl+F5
Build and deploy
Shift+Alt+W
Publish full dependency tree for the active project