-
Key Bindings for Visual Studio Code
-
Visual Studio Code Tips and Tricks
-
Keyboard Reference Sheets
- Download the keyboard shortcut reference sheet for your platform (macOS, Windows, Linux).
Prettier - Code formatter
1. CMD + Shift + P -> Format Document
OR
1. Select the text you want to Prettify
2. CMD + Shift + P -> Format Selection
The code formatting is available in VS Code through the following shortcuts
On Windows Shift + Alt + F
On Mac Shift + Option + F
On Ubuntu Ctrl + Shift + I
Alternatively, you can find the shortcut, as well as other shortcuts, through the search functionality provided in the editor with Ctrl +Shift+ P (or Command + Shift + P on Mac), and then searching for format document.
Document This
Ctrl+Alt+D and again Ctrl+Alt+D