这个真的折腾死我了,看了N多博客才弄好html
这两个仍是比较有用的~git
https://www.cnblogs.com/nickchou/p/9038114.htmlgithub
https://www.jianshu.com/p/83beca927c9egolang
"go.gopath": "D:\\wamp\\www\\Go", //工做空间 "go.goroot": "D:\\Program Files\\Go" //GO程序安装目录
你会发现有不少的组件安装不了~工具
报错以下spa
进入到你的工做空间的src目录下依次建立golang/x目录插件
为何要建立这样的目录呢?请看插件安装的报错!code
src ├── github.com | └── golang.org └── x
而后进入到golang/x目录,克隆tool工具包和linthtm
git clone git@github.com:golang/tools.git
git clone git@github.com:golang/lint.git
克隆完成后,须要将lint复制到github.com目录下一份blog
src ├─ github.com │ └─ lint │ └─ golang.org └─ x ├─ lint └─ tools
完成后,打开vscode,按F1找到Install/Update Tools而后开始更新之路,更新的时间仍是比较就的,大概须要10多分钟左右!
ps:我当时是开着外网的因此都安装成功了,没开外网我就不知道。