Mac configuration VS Code Development Golang

Source: Internet
Author: User
Tags install go gocode
This is a creation in Article, where the information may have evolved or changed.

For the Visual Studio Code development tool, there is a good Golang plug-in, its homepage is: https://github.com/microsoft/vscode-go

Features of this plugin include:

    • Code with color
    • Code autocomplete (using Gocode)
    • Code Snippets
    • Quick Tip information (using GODEF)
    • Jump to Definition (using GODEF)
    • Search references (using go-find-references)
    • Document Outline (using Go-outline)
    • Renaming (using Gorename)
    • Save build (using Go build and go test)
    • Code formatting (using Goreturns or Goimports or gofmt)
    • Debug code (using delve)

Install Go

Skip Over

Install Visual Studio Code

Go to official website: https://code.visualstudio.com/
To download the latest version of Visual Studio Code, the installation process needs to be simply decompressed and copied to the application directory.

Install the Go plugin

Install a few go packages that depend on

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-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 get-u-v Golang.org/x/tools/cmd/guru

go get -u -v github.com/lukehoban/go-find-references

Parameter settings

If an environment variable is set, this step can be skipped.

参考资料:

http://blog.csdn.net/chszs/article/details/50076641
Https://github.com/Microsoft/vscode-go
Developing go programs using Visual Studio Code
http://colobu.com/2016/04/21/use-vscode-to-develop-go-programs/

Configuring the Go Development environment in visual Studio code
Http://www.cnblogs.com/zsy/p/5223957.html

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.