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

}
 

猜你喜欢

转载自blog.csdn.net/boiled_water123/article/details/106958076