Golang Note--ide

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

Optional options are Lite ide\gosublime\visual Studio Code\goclipse\vim

1. Lite IDE

This is the open source and cross-platform Golang exclusive IDE developed by the people, also is the current Golang only IDE, is the use of QT developed, the interface is relatively simple.

Download Address: https://sourceforge.net/projects/liteide/

function is still relatively perfect, automatic format code, compilation, debugging are good.

2, Gosublime

Sublime-based Go language plug-in, beautiful interface, but to manually configure a lot of things.

First search and install the Gosublime plugin and go build plugin in Sublime (Install the package Control first), then install Gocode via Go get-u github.com/nsf/gocode, then configure G Olang environment, as follows:

Then, after that, you can compile by Ctrl + B.

3. Visual Studio Code

Microsoft launches a cross-platform editor that opens large files fast and can be downloaded directly from the official. First install the Go plugin, and Sublime Text, with the Ctrl + Shift + P command to open the command panel, enter the Install keyword to select Extensions:install Extension items, and then wait for the plug-in list to load well, search g o then select Install, then restart the VSC after installation to take effect.

There are also some tools that need to be installed here, which may require FQ:

Go get-u-v github.com/nsf/gocodego get-u-v github.com/rogpeppe/godefgo get-u-v github.com/golang/lint/Go Lintgo Get-u-v github.com/lukehoban/go-find-referencesgo get-u-v sourcegraph.com/sqs/goreturnsgo get-u-v Gol ang.org/x/tools/cmd/Gorenamego get-u-v github.com/derekparker/delve/cmd/dlv     

The final effect is smart hints, the interface looks very comfortable, but in the configuration compile, the output with garbled, temporarily did not find a solution, tentatively.

Configuration compilation can be described in: http://www.open-open.com/lib/view/open1447995873509.html

4, Goclipse

Eclipse-based plug-in.

5. VIM

Configuration cumbersome, non-VIM control, not recommended.

Summary, Novice recommended Liteide direct start development, full-featured, simple installation configuration, followed by recommended gosublime, small and flexible, beautiful interface, there are a large number of other plug-ins can be extended use. Personally prefer to use Gosublime to write code (using VIM mode, in the sublime User configuration with "ignored_packages": [] it is OK), you need to use the breakpoint debugging Liteide.

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.