Go for Visual Studio Code

來源:互聯網
上載者:User
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。
   Visual Studio Code 是微軟推出的一款跨平台的代碼編輯器,可以用它作為golang開發的IDE。其下載地址為:下載地址:https://code.visualstudio.com/Download,安裝完成之後還需要安裝go語言外掛程式。開啟Visual Studio Code ,按快速鍵CTRL+SHIFT+P,輸入Install Extension,然後搜尋go,選中go的開發外掛程式安裝,安裝完畢後重啟下IDE即可。   為了便於go的開發,還需要安裝一些golang相關的工具。   The extension uses the following tools, installed in the current GOPATH. If any tools are missing, you will see an "Analysis Tools Missing" warning in the bottom right corner of the editor. Clicking it will offer to install the missing tools for you.    gocode: go get -u -v github.com/nsf/gocode   godef: go get -u -v github.com/rogpeppe/godef   golint: go get -u -v github.com/golang/lint/golint   go-find-references: go get -u -v github.com/lukehoban/go-find-references   go-outline: go get -u -v github.com/lukehoban/go-outline   goreturns: go get -u -v sourcegraph.com/sqs/goreturns   gorename: go get -u -v golang.org/x/tools/cmd/gorename   gopkgs: go get -u -v github.com/tpng/gopkgs   go-symbols: go get -u -v github.com/newhook/go-symbols   To install them just paste and run:   go get -u -v github.com/nsf/gocode   go get -u -v github.com/rogpeppe/godef   go get -u -v github.com/golang/lint/golint   go get -u -v github.com/lukehoban/go-find-references   go get -u -v github.com/lukehoban/go-outline   go get -u -v sourcegraph.com/sqs/goreturns   go get -u -v golang.org/x/tools/cmd/gorename   go get -u -v github.com/tpng/gopkgs   go get -u -v github.com/newhook/go-symbols   安裝以上工具前需要裝上go sdk,git。由於安裝的過程會下載一些google的資源,所以你的電腦環境需要能夠訪問google的相關服務,如果訪問不了,請自行搜尋翻牆的方法。

參考:https://marketplace.visualstudio.com/items?itemName=lukehoban.Go

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.