I installed google-java-format in Intellij and made sure its enabled for current project. However its still not working, CTRL+ALT+L, which is by default in Intellij is still working.
Also, does this formatter shows error if formatting is wrong. Like eslint shows error if you leave trailing space in vs code.
Or anyone can suggest better formatter or any other way, guidance is appreciated. Though i make sure to do CTRl+ALT+L before pushing code, if my editor can highlight it in case i miss it, it would be great.
Thanks !!
Feb 2023 with the latest google-java-format Intellij plugin we need to add following custom VM options. ( Go to Help -> Edit Custom VM Options )
Just follow the updated README file. Updated README file