Skip to content

Commit

Permalink
Explicitly configure java formatting tab size to 4 spaces
Browse files Browse the repository at this point in the history
The setting from the java-formatter.xml does not seem to be respected.
Set the tab width explicitly via `editor.tabSize` to ensure this works independently of the VSCode settings regarding tab size.
  • Loading branch information
lucas-koehler committed Jul 19, 2024
1 parent b0835b6 commit d7a8a0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"[java]": {
"editor.detectIndentation": false,
"editor.insertSpaces": true,
"editor.defaultFormatter": "redhat.java"
"editor.defaultFormatter": "redhat.java",
"editor.tabSize": 4
},
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
Expand Down

0 comments on commit d7a8a0c

Please sign in to comment.