在Windows/Ubuntu上使用Visual Studio Code作为Go语言编辑器操作步骤
下面以在Windows10上操作為例,在Ubuntu上操作步驟與windows一致:
1. 從?https://code.visualstudio.com/? 下載windows上的最新發(fā)布版本1.21.1,即VSCodeSetup-x64-1.21.1.exe;
2. 以管理員身份運(yùn)行VSCodeSetup-x64-1.21.1.exe;
3. 打開(kāi)Visual Studio Code:依次點(diǎn)擊:查看 --> 擴(kuò)展,在編輯框中輸入Go,點(diǎn)擊安裝,重新加載,如下圖:
4. 新建一個(gè)hello.go文件,內(nèi)容如下,執(zhí)行時(shí),會(huì)提示”The “gopkgs”command is not available. Use “go get -v github.com/uudashr/gopkgs/cmd/gopkgs”to install”,點(diǎn)擊”InstallAll”按鈕安裝:
5.??????依次點(diǎn)擊:調(diào)試 --> 非調(diào)試啟動(dòng),執(zhí)行結(jié)果如下:
GitHub:?https://github.com/fengbingchun/Go_Test?
總結(jié)
以上是生活随笔為你收集整理的在Windows/Ubuntu上使用Visual Studio Code作为Go语言编辑器操作步骤的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Go在Ubuntu 14.04 64位上
- 下一篇: Tesseract-OCR 3.04简单