How to format file | project folder | all project files (using hot keys AND using menu) in Visual Studio Code?
In an existing project, open the document that you want to format, right-click inside the document, and select Format Document. In the default configuration for Visual Studio Code, the command can be run using the shortcut Alt+Shift+F.
Click menu Edit → Advanced → *Format Selection, or press Ctrl + K , Ctrl + F .
If you're on Windows use Shift + Alt + F to make your code "pretty".
(This is similar to Ctrl + K + D in Visual Studio)
You will have to do this for each individual file though. I don't know of a way to format all files at once.
Try with this hotkeys
Ctrl + Shift + i
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With