Startup as service with support of google-java-format plugin.
Do following configuration on settings.json after install:
"[java]": {
//"editor.formatOnSave": true,
"editor.defaultFormatter": "y1rn.java-format",
},
google-java-format.style
: Enum string value [GOOGLE
,AOSP
]. The style name of google java format. Default isGOOGLE
.google-java-format.skipSortingImports
: Boolean value. Whether to fix the import order, but unused imports will still be removed. Default isfalse
.google-java-format.skipRemovingUnusedImports
: Boolean value. Whether to remove unused imports. Imports will still be sorted. Default isfalse
.