redhat-developer / redhat-developer/vscode-java
Unable to off the auto format
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 546
- Avg merge
- 20h 1m
- Merged PRs (30d)
- 11
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the behavior using the reported .devcontainer/devcontainer.json and .vscode/settings.json configurations in the listed Java, VS Code extension, and dev-container environment. First determine which formatter is still invoked when a .java file is saved and which setting takes precedence. Done means formatting is disabled for the workspace while the plugin remains enabled, with the relevant configuration behavior covered by a verified test or documented reproduction.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, vscode
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100