Rumah > Artikel > alat pembangunan > Golang 能用 vscode 开发吗?
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入门教程》
Atas ialah kandungan terperinci Golang 能用 vscode 开发吗?. Untuk maklumat lanjut, sila ikut artikel berkaitan lain di laman web China PHP!