format on save prettier code example
Example 1: prettier config vscode
npm install --save-dev --save-exact prettier
Example 2: prettier on save vscode
// Set the default"editor.formatOnSave": false,// Enable per-language"[javascript]": { "editor.formatOnSave": true}