Skip to content

Commit d7a8a0c

Browse files
committed
Explicitly configure java formatting tab size to 4 spaces
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.
1 parent b0835b6 commit d7a8a0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"[java]": {
1717
"editor.detectIndentation": false,
1818
"editor.insertSpaces": true,
19-
"editor.defaultFormatter": "redhat.java"
19+
"editor.defaultFormatter": "redhat.java",
20+
"editor.tabSize": 4
2021
},
2122
"[dockerfile]": {
2223
"editor.defaultFormatter": "ms-azuretools.vscode-docker"

0 commit comments

Comments
 (0)