First, remove any .prettierrc
from the working directory. Because it overrides user settings and uses the default values.
Second, set Prettier: Tab Width
to 4.
Third, Unchecked Prettier: Use Tabs
And if you have to use .prettierrc
file then specify all the options.
{
"singleQuote": true,
"printWidth": 80,
"editor.formatOnSave": true,
"proseWrap": "always",
"tabWidth": 4,
"requireConfig": false,
"useTabs": false,
"trailingComma": "none",
"bracketSpacing": true,
"jsxBracketSameLine": false,
"semi": true
}