Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Option to disable formatting #109

Open
@americk0

Description

@americk0

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions