vscode gopls 跳转太慢解决方法

豆丁趣

关注

阅读 76

2022-02-18

在 VSCode中按下Ctrl + Shift + P,在搜索框中输入settings,找到Open Settings:JSON 添加

{
    "go.useLanguageServer": true,
    "[go]": {
        "editor.snippetSuggestions": "none",
        "editor.formatOnSave": true,
        "editor.codeActionsOnSave": {
            "source.organizeImports": true,
        }
    },
    "gopls": {
        "usePlaceholders": true, // add parameter placeholders when completing a function
     
        // Experimental settings
        "completeUnimported": true, // autocomplete unimported packages
        "watchFileChanges": true,  // watch file changes outside of the editor
        "deepCompletion": true,     // enable deep completion
    },
    "files.eol": "\n", // formatting only supports LF line endings
}

精彩评论(0)

0 0 举报