vscode autoformat with prettier code example
Example 1: prettier on save vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
Example 2: enable prettier vscode
ext install esbenp.prettier-vscode
{
"folders": [],
"settings": {},
"editor.formatOnSave": true,
}
ext install esbenp.prettier-vscode