enable format on save vscode prettier code example
Example 1: prettier on save vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
Example 2: vscode format code
On Windows Shift + Alt + F.
On Mac Shift + Option + F.
Example 3: prettier on save vscode
// Set the default"editor.formatOnSave": false,// Enable per-language"[javascript]": { "editor.formatOnSave": true}