Skip to content

Instantly share code, notes, and snippets.

@Nydan
Created July 16, 2020 13:18
Show Gist options
  • Save Nydan/d134e3a7b53b062c045e24a5ca5c63f4 to your computer and use it in GitHub Desktop.
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
{
"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