visual studio code for format code example
Example 1: format code in vs code
On Windows Shift + Alt + F.
On Mac Shift + Option + F.
Example 2: format in visual studio code
Ctrl+K Ctrl+F
On Windows Shift + Alt + F.
On Mac Shift + Option + F.
Ctrl+K Ctrl+F