Skip to content

Instantly share code, notes, and snippets.

@030
Last active February 10, 2024 09:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 030/c2836fb7f72e2df209010c5b9fe7a476 to your computer and use it in GitHub Desktop.
Save 030/c2836fb7f72e2df209010c5b9fe7a476 to your computer and use it in GitHub Desktop.
vscode-settings
//
// code --list-extensions --show-versions | tr '\n' ' '
//
// esbenp.prettier-vscode@10.1.0 golang.go@0.37.1 ms-python.autopep8@2023.6.0 ms-python.python@2023.18.0 redhat.vscode-yaml@1.14.0 tamasfe.even-better-toml@0.19.2
//
{
// general
"editor.formatOnSave": true,
"window.zoomLevel": -1,
// golang
//
// add to either ~/.bashrc as ~/.zshrc:
// export GOROOT=/snap/go/current
// export GOPATH=~/go
// export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
//
"[go]": {
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"go.buildTags": "integration",
"go.formatTool": "goimports",
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"gopls": {
"formatting.gofumpt": true
},
// json
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"json.format.enable": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment