How to turn off the prettier trailing comma in VS Code?
I go to settings. Select none
for the prettier trailing comma. Restart VS Code. Select a piece of TypeScript, press Ctrl
+ Shift
+ F
and the trailing commas still appear. How could I fix it?
.prettierrc
config file in your project that overrides the VSCode settings ? – Ewaren May 18 '20 at 18:56Ctrl
+P
and typing the.prettierrc
) I can not find such a file. But by searching through all the files (Ctrl
+Shift
+F
) I can find a filesettings.json
and in the file I has only this:{"prettier.trailingComma": "none"}
. – manymanymore May 18 '20 at 19:03settings.json
file contains your workspace settings : it is just the JSON transcription of the settings you chose in VSCode's graphical interface. There must be a config file in your project overriding these settings, it would be easier to help you if you could show us the folder structure of your project (for example with thetree -a
command). – Ewaren May 18 '20 at 19:15ng new angular-tour-of-heroes
. When I try to run the command in my project folder I am getting the error:$ tree -a bash: tree: command not found
– manymanymore May 18 '20 at 19:18{ "trailingComma": "none" }
in it maybe. – Ewaren May 18 '20 at 21:50