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
相关推荐
FungLeo6 小时前
FengCMS · PHP+MySQL 升级实录 · 编辑器迁移:KindEditor → wangEditor5 +服务端 HTML Purifier
mysql·编辑器·php·富文本编辑器·fengcms
BD_Marathon6 小时前
Jupyter魔法命令
ide·python·jupyter
郝学胜-神的一滴1 天前
Effective STL 条款 07:指针容器销毁前先删除
开发语言·c++·vscode·leetcode·rpc·visual studio
aaaameliaaa1 天前
VSCode的安装与配置
ide·笔记·vscode·编辑器
Star(up up up)2 天前
MySQL 事务隔离级别是如何实现的?从 MVCC 到锁机制原理详解
笔记·vscode·sql·学习·程序人生·mysql·学习方法
ScilogyHunter3 天前
[14] TMS570LC4357_VIM向量中断:128 通道、双 VIM 与硬件向量分发
单片机·编辑器·vim·excel·hercules·tms570
宝桥南山4 天前
Visual Studio 2026新特性 - 可以直接连接DeepSeek(使用Custom Endpoint Provider配置项)
ide·microsoft·微软·aigc·.net·visual studio
wangqiaowq4 天前
Protégé 开源本体(Ontology)编辑器
编辑器
张紫娃6 天前
idea 如何看一个类的 .class 文件
java·ide·intellij-idea
NoteDeep 深度笔记6 天前
DOM 被改乱了怎么办?Notedeep 编辑器的 normalize 设计
前端·javascript·编辑器