vscode不能进行go跳转

辗转反侧,弄了好久好久终于出山了

总结:跟vscode版本插件有关

老版本vscode DocsTool修改成godoc
新版本vscode
复制代码
go get golang.org/x/tools/gopls@latest
  1. setting中
bash 复制代码
"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
    "completionDocumentation": true // for documentation in completion items
},
"files.eol": "\n", // formatting only supports LF line endings
相关推荐
睡觉早点4 小时前
IntelliJ IDEA下载安装过程(含Java环境搭建)
java·ide·jdk·maven·intellij-idea
草酸艾司西酞普兰4 小时前
idea中使用Qoder插件
java·ide·intellij-idea
芽芽_04 小时前
idea无法打开:Cannot collect JVM options
java·ide·intellij-idea
Flying_Fish_roe4 小时前
IntelliJ IDEA 2025 版本与其他历史版本的全面专业对比分析
java·ide·intellij-idea
朝阳398 小时前
vscode 实用插件【Md Editor】即时渲染编辑 .md 文件(带工具条)
vscode
Rendy_8 小时前
github copilot vscode插件 没有模型
vscode·github·copilot
2301_793069829 小时前
VS-CODE 里的github copilot 不支持自己配置模型api
vscode
晚风予卿云月10 小时前
Linux编辑器—vim的使用
linux·编辑器·vim
DeadPool loves Star11 小时前
VSCode关闭Shell内联建议
ide·vscode·编辑器
超哥归来11 小时前
关闭vscode中git的行历史提示
ide·git·vscode·编辑器