vscode go settings

{

    "go.goroot": "D:\\Go\\",

    "go.gopath": "E:\\work\\GO\\GoPath\\",

    "go.formatTool": "goimports",

    "go.lintTool": "golint",

    "go.autocompleteUnimportedPackages": true,

    "go.useLanguageServer": true,

    "go.languageServerExperimentalFeatures": {

        "format": true,

        "autoComplete": true,

        "rename": true,

        "goToDefinition": true,

        "completeUnimported": true,

        "documentLink": true,

        "diagnostics": false,   

         },

         "[go]": {

             "editor.formatOnSave": true,

             "editor.codeActionsOnSave": {

                 "source.organizeImports": true,        

                 },    

        },

        "search.followSymlinks": false

}

你可能感兴趣的:(go环境)