Golang 能用 vscode 开发吗?
时间:2020-07-02 14:34
Golang 能用 vscode 开发吗?
Golang能用vscode进行开发,使用方法:
首先打开vscode,并打开扩展;
然后搜索Go,并点击install安装插件,如果已经安装了,会显示uninstall;
最后配置编辑器,并将依赖库安装即可。
修改为
{ "go.buildOnSave": "workspace", "go.lintOnSave": "package", "go.vetOnSave": "package", "go.buildTags": "", "go.buildFlags": [], "go.lintFlags": [], "go.vetFlags": [], "go.coverOnSave": false, "go.useCodeSnippetsOnFunctionSuggest": false, "go.formatOnSave": true, "go.formatTool": "goreturns", "go.goroot": "D:/tool/go", "go.gopath": "E:/gowork", "go.gocodeAutoBuild": false, "files.autoSave":"onFocusChange", "launch": { "version": "0.2.0", "configurations": [ { "name": "GoLaunch", "type": "go", "request": "launch", "mode": "debug", "remotePath": "", "port": 2345, "host": "127.0.0.1", "program": "${fileDirname}", "env": { "GOPATH":"E:/gowork" }, "args": [], "showLog": true } ] } }
推荐教程:《vscode入门教程》
以上就是Golang 能用 vscode 开发吗?的详细内容,更多请关注gxlsystem.com其它相关文章!