-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto formatting #358
Comments
The only way I found is to use an Eclipse style / format configuration file, like this one : Or download Eclipse, make your configuration and export it. |
The recent update of VSCode brought great things to the Java language support, but unfortunately, there is still no way to deal with formatting. The most bothering thing is that I didn't find the list of possible properties, neither the available values for those properties. |
The closest thing I found for formatting Java files is this - https://marketplace.visualstudio.com/items?itemName=JoseVSeb.google-java-format-for-vs-code If you are using a different set of rules, then you are probably out of luck. And yes, there is indeed a lack of proper configuration provisions. |
Exactly... almost everything I found is "use Google Java format without any flexibility or leave it". Actually, there is also a plugin using JS prettier with rules for Java, but you need NodeJS installed, but if I do only Java, I don't want NodeJS around. |
Discussed in #357
Originally posted by SSmale December 4, 2023
I am looking for a way to get my VSCode setup to auto fix the check style issues (as best as it can) so that there can be a check on build and I can be confident that I will have met the standard, Is there a guide to do this?
The text was updated successfully, but these errors were encountered: