Skip to content

Commit

Permalink
Make VSCode use wpilib java formatting.
Browse files Browse the repository at this point in the history
Also ensures that if you have enabled format on save, it only formats the modified lines.
  • Loading branch information
brettle authored and CoolSpy3 committed May 28, 2024
1 parent 9b6e340 commit 18ae1e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 18ae1e7

Please sign in to comment.