google-java-format icon indicating copy to clipboard operation
google-java-format copied to clipboard

Adding section VScode in the Readme file

Open bavly opened this issue 5 years ago • 7 comments

Hello,

This enhancement, when I have opened the project I searched on the Readme how to use the project in VScode but I did not find.

bavly avatar May 24 '20 14:05 bavly

I've been searching for the same thing. There is no section for VSCode. But is it even possible to use in vscode ?

yanisdb avatar May 31 '20 12:05 yanisdb

There are lots of other non-official google-java-format code style linter, but none of them actually matched 100% with this official style. I have been forced to use Intellij where my favorite editor of choice (VScode) do not have official support.

xbeta avatar Aug 04 '20 19:08 xbeta

I’ve never used vcode but I’m not using this plugin with intellij, instead, I’m running the standalone jar compiled to native executable with graallvm. Intellij includes a file watcher plugin that calls the executable whenever the file is saved. For bigger files, it’s faster than the plugin. I expect the vscode has some kind of file watcher that can do the same.

natros avatar Aug 04 '20 20:08 natros

The idea is that the project releated to code format & VScode now one of largest editor people in tech using it, when i see the project i was need to try it on VScode but couldn't find official document.

bavly avatar Aug 04 '20 20:08 bavly

Actually I tried Seth's change on VScode and it works well

https://www.sethvargo.com/using-google-java-format-with-vs-code/

xbeta avatar Aug 04 '20 21:08 xbeta

@xbeta I will try these steps.

bavly avatar Aug 09 '20 17:08 bavly

If you use spotless, then you can also use its VS Code plugin.

nedtwigg avatar Sep 08 '20 05:09 nedtwigg