Skip to content

Unable to off the auto format #3975

Open
@yell0w4x

Description

@yell0w4x

In my .devcontainer/devcontainer.json I have "editor.formatOnSave": true, but I want to disable auto format on save for this particular workspace. So in my .vscode/settings.json I have these

{
    ...
    "editor.formatOnSave": false,
    "[java]": {
        "editor.defaultFormatter": null,
        "editor.formatOnSave": false
    },
    "java.format.enabled": false,
    "java.format.onType.enabled": false,
    "java.format.settings.url": "",
    "java.format.settings.profile": ""
}

As you can see I tried everything I think relates to the issue, but nothing actually works. The plugin continues formatting .java files on save. Only if I disable the plugin it stops.

I also tried to set "editor.formatOnSave": false in devcontainer.json it doesn't matter as well.
Please also note I tried only "java.format.enabled": false option leaving "java.format.settings.url" & "java.format.settings.profile" default.

Environment
  • Plugin Version: 1.40.0
  • OS: Manjaro Linux
  • Dev Container OS: Ubuntu 24.04 LTS
  • Java: openjdk version "21.0.6" 2025-01-21

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions