Format code in Visual Studio Code (VSCode)

The code formatting is available in Visual Studio 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.


Popular posts from this blog

Fixed Windows warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)

How to install/renew SSL Certificate for Glassfish