Replies: 3 comments 5 replies
-
The other solution would be to add an IDE hook into the maven plugin. Here is the Gradle hook, only ~50 lines. |
Beta Was this translation helpful? Give feedback.
-
A Spotless Maven extension for VSCode would be really great. I am interested in this. |
Beta Was this translation helpful? Give feedback.
-
As a workaround I'm using the VSCode plugin Run On Save to do run a Based on https://www.sethvargo.com/using-google-java-format-with-vs-code/ Slightly changed the command in the plugin settings in my
This way it works with the configuration and stuff in the Note: Unfortunately I cannot limit it to the single file with the |
Beta Was this translation helpful? Give feedback.
-
Hello,
my team and me are searching for a Java formatter.
We've got an Java project which is built with maven. As IDEs Intellij IDEA and VSCode (with Redhats Language Support package are used.
Spotless is working fine for Intellij IDEA. Unfortunally, it is not possible for me as an VSCode user to use spotless in an conveniet way. There is no plugin for maven and we do not want to migrate to gradle just because of the plugin support.
Some solutions which we may think of:
mvn spotless:apply
As you can see every solution is not a real solution, but a workaround. I also thought about the possibility to integrate something like the eclipse xml settings with spotless conventions (like described here). However I am not able to find such a file and I don't think it even exists.
Are there any other solution for this kind of problem?
Beta Was this translation helpful? Give feedback.
All reactions