vscode/format-code

Format Code

Automatically format your code

vscode
shortcuts
format

Command

Shift + Alt + F (Windows/Linux) | Shift + Option + F (Mac)

Explanation

You can format your code based on the default or installed formatter.

Examples

Format code on Windows/Linux

Shift + Alt + F

Format code on macOS

Shift + Option + F