Golang-vs code 代码提示

win:

打开你的 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

你可能感兴趣的:(Golang-vs code 代码提示)