how to use prettier in vs code code example
Example 1: prettier on save vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
Example 2: enable prettier vscode
ext install esbenp.prettier-vscode
Example 3: prettier install in vscode
Install node.js first
Example 4: prettier set up with vs code
{ "trailingComma":"none", "tabWidth": 4, "semi": true, "singleQuote": false}