Search code examples
angulartypescriptvisual-studio-codecode-formattinghotkeys

How to format file in Visual Studio Code (hotkeys)?


How to format file | project folder | all project files (using hot keys AND using menu) in Visual Studio Code?


Solution

  • 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.