VSCode prettier config code example
Example 1: how to edit /.prettierrc.json file pretter
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
Example 2: prettier on save vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
Example 3: prettier config vscode
npm install --save-dev --save-exact prettier
Example 4: enable prettier vscode
ext install esbenp.prettier-vscode
Example 5: prettier set up with vs code
{ "trailingComma":"none", "tabWidth": 4, "semi": true, "singleQuote": false}