how to setup prettier in vscode as default formatter code example
Example 1: prettier config vscode
npm install --save-dev --save-exact prettier
Example 2: prettier set up with vs code
{ "trailingComma":"none", "tabWidth": 4, "semi": true, "singleQuote": false}