0

I would like to format my Java files in VSCode using the Checkstyle Sun Checks format (https://github.com/checkstyle/checkstyle/blob/master/src/main/resources/sun_checks.xml)

I understand that we can set the format in VSCode by setting the following parameter in settings.json

"java.format.settings.url": ""

However, the above parameter needs the file as Eclipse formatter xml.

Is sun_checks available in the above format?

c_anirudh
  • 375
  • 1
  • 22

1 Answers1

0

So for there is no way to convert a checkstyle rules file to the format setting file in VS Code.

But there is a workaround. You can first export that file in Eclipse, and then set it in VS Code. Check: https://stackoverflow.com/a/9665882/13068918.

Sheng Chen
  • 1,012
  • 4
  • 18