コマンドパレットを開く
command + shift + P
settings.json
{ "files.autoSave": "afterDelay", "files.autoSaveDelay": 10000, // 自動保存猶予 default:1000 "files.insertFinalNewline": true, "github.copilot.enable": { "*": true, "plaintext": true, "markdown": true, "scminput": false, "go": true }, "editor.inlineSuggest.enabled": true, "editor.largeFileOptimizations": false, "": { "editor.defaultFormatter": "golang.go", "editor.tabSize": 4, // "editor.insertSpaces": false, "editor.formatOnSave": true, "editor.formatOnPaste": true, "editor.formatOnType": true, // 保存時にフォーマットを適用 "editor.codeActionsOnSave": { "source.organizeImports": "explicit" } }, "go.formatTool": "gofmt", "go.useLanguageServer": true, // Go言語サーバーを有効化(オプション) "go.formatFlags": [ "-w" ], "go.lintTool": "golint", "go.lintOnSave": "package", "go.vetOnSave": "package", "go.buildOnSave": "package", "go.testOnSave": false, "go.gocodeAutoBuild": true, "go.installDependenciesWhenBuilding": true, "[graphql]": { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnType": true, "editor.formatOnPaste": true, "editor.formatOnSave": true }, "prettier.tabWidth": 4, "emeraldwalk.runonsave": { "commands": [ { "cmd": "gofmt -w ${file}", "match": "\\.go$" } ] }, "explorer.confirmDragAndDrop": false, "window.zoomLevel": 1, "workbench.editor.enablePreview": false, "yaml.schemas": { "file:///Users/yuu.kanehiro/.vscode/extensions/docsmsft.docs-yaml-1.0.1/dist/toc.schema.json": "/toc\\.yml/i" }, "github.copilot.editor.enableAutoCompletions": true, "editor.mouseWheelZoom": true, }