vscode go setting

file => preference => setting => Extenstions => Go => setting.json

 

{

    "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

}
 

你可能感兴趣的:(golang)