prettier-java icon indicating copy to clipboard operation
prettier-java copied to clipboard

Make it a VS Code Extension

Open brunoborges opened this issue 4 years ago • 8 comments

Title says it all. :-P

brunoborges avatar Aug 30 '21 17:08 brunoborges

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.

jdubois avatar Aug 31 '21 07:08 jdubois

The Prettier extension for VS Code does not come with Java support by default. It requires non-trivial settings to enable JHipster's plugin.

brunoborges avatar Aug 31 '21 18:08 brunoborges

Oh, let’s have a look at improving it.

jdubois avatar Aug 31 '21 18:08 jdubois

I'm using java prettier formatter plugin and it seems to work for me at least.

linco95 avatar Sep 28 '21 12:09 linco95

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,

mwpb avatar Oct 30 '22 08:10 mwpb