Go for Visual Studio Code

Source: Internet
Author: User
Tags install go gocode sourcegraph
This is a creation in Article, where the information may have evolved or changed.
   Visual Studio Code is Microsoft's launch of a cross-platform coding editor that can be used as an IDE for Golang development. The download address is: Download address: https://code.visualstudio.com/Download, after installation, you will also need to install the Go language plugin.   Open Visual Studio Code, press the shortcut key ctrl+shift+p, enter install Extension, then search go, select the Go Development plug-in installation, reboot the IDE after the installation is complete.   To facilitate the development of go, there are some Golang related tools that need to be installed. The extension uses the following tools, installed in the current Gopath. If any tools is missing, you'll see the ' analysis tools missing ' warning in the bottom right corner of the editor.    Clicking it would 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.C Om/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-sy MboLS To install them just paste and run:go get-u-v github.com/nsf/gocode go get-u-v github.com/rogpeppe/godef G o 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 you need to install go sdk,git before installing the above tools. Because the installation process will download some Google resources, so your computer environment needs to be able to access Google's related services, if not access, please search the way to turn the wall.

Reference: Https://marketplace.visualstudio.com/items?itemName=lukehoban.Go

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.