From 18ae1e7a3ad34ab87dfc1311fe0e0a7a2f9af635 Mon Sep 17 00:00:00 2001 From: Dean Brettle Date: Mon, 27 May 2024 17:25:00 -0700 Subject: [PATCH] Make VSCode use wpilib java formatting. Also ensures that if you have enabled format on save, it only formats the modified lines. --- .vscode/settings.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index c5f3f6b..1af295a 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,3 +1,5 @@ { - "java.configuration.updateBuildConfiguration": "interactive" + "java.configuration.updateBuildConfiguration": "interactive", + "java.format.settings.url": "https://raw.githubusercontent.com/wpilibsuite/styleguide/main/ide/eclipse-java-google-style.xml", + "editor.formatOnSaveMode": "modificationsIfAvailable" } \ No newline at end of file