Closed jaoxford closed 1 week ago
I'm not using maven-plugin-java, but it works fine for me using Actions on Save
:
Don't forget to add the java extension to files that should be prettified:
Maybe you can try the manual Prettier configuration above to fill the exact prettier location?
I can run the file watcher on save, like so:
However, I still get the same prettier error I listed above.
Got it working, I had to force it to write to Java files: --write $FilePathRelativeToProjectRoot$ "**/*.java
Just curious if there's a way of formatting this on save? I am using intelliJ. I have tried to use the file-watcher plugin, with the following config for my IDE:
When I save my file I get the following error:
Here's the output of print-args:
And if I manually trigger prettier:write that is also fine. Ideally this would be something that runs on every save, so I don't have to think about it!
Any idea or help would be appreciated!