You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
Add an option to disable formatting of files on save to the settings page.
Motivation
I love this tool but I'm unable to use it on collaborative projects where the style guide is anything but the defaults for this package. My teammates have agreed to use the Google Java Style Guide (but tweaked slightly to use 4-space indent, 8-space indent when breaking a statement over multiple lines, and 100 character maximum per line) for the specific project I want to use this extension for, but unfortunately while this package is enabled, it auto-formats the current file turning would-be one line PRs into potentially hundreds of line changes and breaking the style guide.
Describe alternatives you've considered
I've tried looking through the Eclipse JDT language Server's documentation to see if maybe there's a flag that can be passed to disable formatting but wasn't able to come up with anything. I also looked for a way to specify a custom formatting configuration but wasn't able to find anything there either.
Additional context
The text was updated successfully, but these errors were encountered:
Good news: I've figured out how to pass settings to the language server :). I see some format options there, so we should be able to control that once I get something hooked up properly in ide-java. No guarantees on when that will happen, though.
Summary
Add an option to disable formatting of files on save to the settings page.
Motivation
I love this tool but I'm unable to use it on collaborative projects where the style guide is anything but the defaults for this package. My teammates have agreed to use the Google Java Style Guide (but tweaked slightly to use 4-space indent, 8-space indent when breaking a statement over multiple lines, and 100 character maximum per line) for the specific project I want to use this extension for, but unfortunately while this package is enabled, it auto-formats the current file turning would-be one line PRs into potentially hundreds of line changes and breaking the style guide.
Describe alternatives you've considered
I've tried looking through the Eclipse JDT language Server's documentation to see if maybe there's a flag that can be passed to disable formatting but wasn't able to come up with anything. I also looked for a way to specify a custom formatting configuration but wasn't able to find anything there either.
Additional context
The text was updated successfully, but these errors were encountered: