Answer the question
In order to leave comments, you need to log in
How to fix conflict between prettier and vscode? Why is vscode behaving so strangely?
After a few days of frustration, surfing the Internet looking for a solution to the problem, I found nothing. It is very inconvenient to work without prettier.
A very strange bug that for some reason is reproducible on my machine. Never encountered such a bug before.
What is the problem: after installing prettier as an extension, I create configuration files in the root of the project: the .vscode folder (inside the settings.json file) and the .prettierrc file (except for prettier it costs nothing, the rest of the settings are reset to default)
In them, respectively, I set settings.json config
{
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"editor.formatOnSave": true,
"javascript.format.enable": false,
"material-icon-theme.activeIconPack": "react_redux"
}
{
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"trailingComma": "es5"
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question