Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5054

Prettier in vscode

$
0
0

I have a Problem with Visual Studio Code and Prettier. I got the following ".prettierrc"

{ "semi": false, "singleQuote": true, "arrowParens": "avoid", "bracketSpacing": false, "printWidth": 60 }

when i do know "npx prettier -w *.js" it works fine, for example it removes the Semicolon at the end of each line. But when I try to use it without the npx it doesn't work. I got the Option "format on save" activated for Prettier. But he only moves the semicolon to the end of the line and doesn't delete it.

I activated "Prettier:Require Config", Set Prettier -Code Format as default and also added "Prettier:Config Path: prettierrc" <-- Is my path maybe wrong ??


Viewing all articles
Browse latest Browse all 5054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>