The extension doesn't do the same as npx prettier --write
#3080
Closed
jonnylangefeld
started this conversation in
General
Replies: 1 comment
-
If anyone else finds this: In my case the issue were some conflicting settings in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have 'format on save' enabled and when I hit save on a file prettier actually runs and fixes things like indents in my file. However, if I run
npx prettier --write src
(or on any specific file) there are lots more edits that I actually also want when I hit save.Where is my misconfiguration so that hitting save does something different than running
npx prettier --write
?I have the following
prettier.config.js
:And these dev dependencies among others:
And this is from my vscode settings:
If I run
npx prettier --write src
there are lots of edits to my code. Edits that I want when I hit save as well, but don't get. Hitting save does some edits like fixing indentations, but it doesn't do a lot of other edits thatnpx prettier --write
does.Beta Was this translation helpful? Give feedback.
All reactions