Created
July 16, 2020 13:18
-
-
Save Nydan/d134e3a7b53b062c045e24a5ca5c63f4 to your computer and use it in GitHub Desktop.
VsCode setting for golang. Enabling gopls and set vs code to follow keyCode in linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"window.menuBarVisibility": "toggle", | |
"go.formatTool": "goimports", | |
"go.useLanguageServer": true, | |
"window.zoomLevel": 0, | |
"keyboard.dispatch": "keyCode", | |
"[go]": { | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true, | |
}, | |
// Optional: Disable snippets, as they conflict with completion ranking. | |
"editor.snippetSuggestions": "none", | |
}, | |
"[go.mod]": { | |
"editor.formatOnSave": true, | |
"editor.codeActionsOnSave": { | |
"source.organizeImports": true, | |
} | |
}, | |
"gopls": { | |
// Add parameter placeholders when completing a function. | |
"usePlaceholders": true, | |
// If true, enable additional analyses with staticcheck. | |
// Warning: This will significantly increase memory usage. | |
"staticcheck": false, | |
}, | |
"go.enableCodeLens": { | |
}, | |
"editor.minimap.enabled": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment