From 7298677834490078d7dbf3e28572ac385ac9302a Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Tue, 20 Jun 2023 17:57:22 -0700 Subject: [PATCH] VS Code settings for Java (#1552) --- .vscode/settings.json | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 79674d5de0..6fcbd719ff 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -3,15 +3,14 @@ "css.lint.validProperties": [ "composes" ], - "editor.defaultFormatter": "ms-dotnettools.csharp", "editor.formatOnType": true, "editor.formatOnSave": true, "editor.formatOnPaste": true, - "editor.codeActionsOnSave": { - "source.fixAll": true - }, "[csharp]": { - "editor.defaultFormatter": "ms-dotnettools.csharp" + "editor.defaultFormatter": "ms-dotnettools.csharp", + "editor.codeActionsOnSave": { + "source.fixAll": true + } }, "editor.bracketPairColorization.enabled": true, "editor.guides.bracketPairs": "active", @@ -74,5 +73,22 @@ }, "cSpell.words": [ "Partitioner" - ] + ], + "[java]": { + "editor.formatOnSave": false, + "editor.tabSize": 4, + "editor.codeActionsOnSave": { + "source.fixAll": false + }, + }, + "emeraldwalk.runonsave": { + "commands": [ + { + "match": "\\.java$", + "cmd": "java -Xmx128m -jar ${workspaceFolder}/java/utilities/google-java-format-1.17.0-all-deps.jar --replace --aosp ${file}" + }, + ], + }, + "java.debug.settings.onBuildFailureProceed": true, + "java.compile.nullAnalysis.mode": "disabled" } \ No newline at end of file