Make it a VS Code Extension
Title says it all. :-P
I haven’t tried it (I’m using it as a Git pre-hook), but there should already be a Prettier extension, so this should already work. At least, we shouldn’t build our own extension, the idea is that we benefit from the Prettier ecosystem (or contribute to it). Less work for us, and our users benefit from all the other Prettier plugins.
The Prettier extension for VS Code does not come with Java support by default. It requires non-trivial settings to enable JHipster's plugin.
Oh, let’s have a look at improving it.
I'm using java prettier formatter plugin and it seems to work for me at least.
Hi all, I'm the 'author' of mwpb.java-prettier-formatter. Thanks for all the hard work on prettier-plugin-java. Did the above discussion lead anywhere? Right now haven't used Java for quite a while and there am probably not right person to maintain a VS Code extension. For the short term, I'm happy to do a small amount of work updating the prettier-plugin-java dependency of mwpb.java-prettier-formatter when required. (C.f. https://github.com/mwpb/java-prettier-formatter/issues/5) But for the long-term, maybe it might make more sense to have the plugin under the auspices ofjhipster? Feel free to copy the mwpb.java-prettier-formatter code or ask questions as you see fit. Thanks,