vscode 添加golang插件

安装好git

下列命令中的路径一定要按照自己实际的路径来

mkdir -p $GOPATH/src/golang.org/x  //路径下创建此文件
cd $GOPATH/src/golang.org/x      //切换到此目录
git clone https://github.com/golang/tools.git  //通过git安装 tools
git clone https://github.com/golang/lint.git   //安装 lint 
go get golang.org/x/lint/golint       //然后执行
 

最后重启vs code 你会发现智能提示 代码补全,等等一系列的友好提示已经安装完成(如果会编译器会出现提示 install go的时候点击安装即可)
---------------------

原文:https://blog.csdn.net/qq_36546907/article/details/83958134

猜你喜欢

转载自www.cnblogs.com/wuyaxiansheng/p/11227429.html