0
点赞
收藏
分享

微信扫一扫

vscode gopls 跳转太慢解决方法

豆丁趣 2022-02-18 阅读 76

在 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 条评论