5
Golang-vs code 代码提示
source link: https://studygolang.com/articles/32381
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Golang-vs code 代码提示
出逃酱er · 大约21小时之前 · 83 次点击 · 预计阅读时间 1 分钟 · 不到1分钟之前 开始浏览打开你的 PowerShell 并执行
env:GO111MODULE ="on"
env:GOPROXY ="https://goproxy.cn"
管理员方式打开cmd
cd gopath 手动go get,重启vs即可看到代码提示:
go get github.com/mdempsky/gocode
go get github.com/uudashr/gopkgs/v2/cmd/gopkgs
go get github.com/ramya-rao-a/go-outline
go get github.com/acroca/go-symbols
go get golang.org/x/tools/cmd/guru
go get golang.org/x/tools/cmd/gorename
go get github.com/cweill/gotests/...
go get github.com/fatih/gomodifytags
go get github.com/josharian/impl
go get github.com/davidrjenni/reftools/cmd/fillstruct
go get github.com/haya14busa/goplay/cmd/goplay
go get github.com/godoctor/godoctor
go get github.com/go-delve/delve/cmd/dlv
go get github.com/stamblerre/gocode
go get github.com/zmb3/gogetdoc
go get golang.org/x/tools/cmd/goimports
go get golang.org/x/lint/golint
go get golang.org/x/tools/gopls
Mac 下终端命令,然后执行上面的go get
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn
有疑问加站长微信联系(非本文作者)
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK