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
In my
.devcontainer/devcontainer.jsonI have"editor.formatOnSave": true, but I want to disable auto format on save for this particular workspace. So in my.vscode/settings.jsonI 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
.javafiles on save. Only if I disable the plugin it stops.I also tried to set
"editor.formatOnSave": falseindevcontainer.jsonit doesn't matter as well.Please also note I tried only
"java.format.enabled": falseoption leaving"java.format.settings.url"&"java.format.settings.profile"default.Environment