Decorate (format) Java code in Visual Studio Code

I tried several suggestions for here and here , but none of them work. How do you do this for Java code, or is there a way for general? En passant, I install an XML formatter so that it can work, but not.

enter image description here enter image description here

+4
source share
1 answer

For proper formatting, you need to install the VSCode extension, which provides Java formatting. Try this on Redhat: https://marketplace.visualstudio.com/items?itemName=redhat.java

After the extension is installed, standard code / shotgun commands should work for Java code.

+2

Source: https://habr.com/ru/post/1672877/


All Articles