vscode auto format on save code example
Example 1: autoformating for code in vscode when i save it
"editor.formatOnSave": true
Example 2: vscode autoindent on save
Use [Ctrl]+[Shift]+[p]
Type "Preferences"
Select "Preferences: Open User Settings"
Search for "format"
Change "Editor: Format On Save" or "Editor: Format On Paste".
Example 3: prettier on save vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
Example 4: vscode format code
On Windows Shift + Alt + F.
On Mac Shift + Option + F.