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
相关推荐
渐暖°5 小时前
【leetcode算法从入门到精通】5. 最长回文子串
vscode·算法·leetcode
WarmSword9 小时前
mac上用cursor/vscode调试root权限进程
c++·ide·vscode·macos·mac
HAPPY酷11 小时前
构建即自由:一份为创造者设计的 Windows C++ 自动化构建指南
开发语言·c++·ide·windows·python·策略模式·visual studio
山峰哥11 小时前
SQL优化全解析:从索引策略到查询性能飞跃
大数据·数据库·sql·编辑器·深度优先
木斯佳11 小时前
OpenTiny:快速搭建实时协作文本编辑器:基于 TinyEditor 的实践指南
编辑器
取个鸣字真的难12 小时前
简单快速的用 Claude Code 帮你创建 PPT 生成 Skills
vscode·powerpoint·ai编程
K·Herbert12 小时前
OpenClaw 私人电脑部署风险
人工智能·安全·编辑器
henysugar13 小时前
Android studio编译aidl若干问题记录
android·ide·android studio·aidl
阿斌_bingyu70913 小时前
FastAdmin 混合式语言包添加繁体中文(zh-tw)完整教程
android·ide
何中应14 小时前
PyCharm报`Invalid Python SDK`错误
ide·python·pycharm