best prettier extension settings code example
Example 1: how to edit /.prettierrc.json file pretter
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true
}
Example 2: prettier config vscode
npm install --save-dev --save-exact prettier
Example 3: vscode format code
On Windows Shift + Alt + F.
On Mac Shift + Option + F.
Example 4: enable prettier vscode
ext install esbenp.prettier-vscode