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 開發嗎?的詳細內容。更多資訊請關注PHP中文網其他相關文章!