Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions 7 .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"recommendations": [
"redhat.java",
"vscjava.vscode-java-pack",
"josevseb.google-java-format-for-vs-code"
]
}
31 changes: 31 additions & 0 deletions 31 .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
// formatOnType and formatOnPaste is a very bad idea for slow formatters
// (such as an external Google Java Format invocation exec), so just on Save:
"editor.formatOnSave": true,
"editor.formatOnType": false,
"editor.formatOnPaste": false,

"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

"[java]": {
"editor.tabSize": 2,
// Format Java using https://github.com/google/google-java-format,
// via https://github.com/JoseVSeb/google-java-format-for-vs-code
"editor.defaultFormatter": "josevseb.google-java-format-for-vs-code",
"editor.codeActionsOnSave": {
// Used by at least JS as well as Java, so only overridden for [java]
"source.organizeImports": "always",
"source.addMissingImports": "never"
}
},
// Keep this version in sync with the same version in pom.xml
// NB: Changes to this are only taken into account on start-up, so need to restart.
"java.format.settings.google.version": "1.27.0",
// TODO https://github.com/eclipse-jdtls/eclipse.jdt.ls/issues/3050
"java.compile.nullAnalysis.mode": "automatic",
"java.completion.importOrder": ["#", "", "javax", "java"], //# is static
vorburger marked this conversation as resolved.
Show resolved Hide resolved
"java.completion.favoriteStaticMembers": ["com.google.common.truth.Truth.*"],
"java.configuration.updateBuildConfiguration": "automatic",
"java.import.maven.enabled": true
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.