21-day Boutique blockchain free learning, in-depth expert led the way, to help developers easily play the blockchain! >>>
The go language is now becoming more popular among developers, and many people are naturally looking for the right IDE for code syntax highlighting, auto-completion, and other editing features.
Here is a comparison of several commonly used Ides:
1. Sublime text
This text editor is popular among developers, it should be said that sublime is not a fully mature IDE, but it has a lot of language extensions, such as Python, Lua, including a plugin gosublime specifically for the Go language, Gosublime provides syntax highlighting , auto-complement function, which makes sublime text a very useful go IDE.
2. IntelliJ
The IntelliJ IDE is provided by JetBrains and is popular among Java developers, with its own go plugin that supports syntax highlighting, code completion, automatic compilation, and sub-library support. This makes it easy for you to split the project into multiple packages while you can browse them in a separate IDE.
It has a very handy feature, and the plugin uses a highlight to show unused variables or packages (as shown in the Hdea variable is currently unused variable).
3. Liteide
Liteide is also a dedicated IDE for Golang, I also use it, the function is very comprehensive, with syntax highlighting, automatic completion, automatic compilation, debugging, package browsing and management.
The debugger uses GDB in the background so that you can easily print variable values and view current stack information.
4. Intype
Intype is a text editor supported only under Windows, with limited syntax highlighting support and specific highlighting settings.
5. Netbeans
NetBeans built-in support for a large number of languages, but also with the go plugin to create a normal project, like creating a go source file, in addition to syntax highlighting, its go plugin does not support other special features, how to use the IDE to compile the go file is not known.
6. Eclipse
Eclipse may be the most popular IDE listed here. The Goclipse plugin adds IDE functionality to eclipse to support go. Goclipse provides configurable syntax highlighting, automatic document completion, automatic compilation, and the most important experimental debugging support.
7. TextMate
TextMate is a text editor under Mac OS that can be extended to highlight go code and provide source code snippets.
8. Komodo Edit
The Komodo editor (or IDE) is an open source code editor from ActiveState. It is based on Monzilla 7.0 and supports cross-platform support for multiple languages, but the free version of the Komodo feature is limited, its Golang plugin komodo-go provides basic syntax highlighting, code completion function.
9. Zeus
Zeus is an editor under Windows that supports the go language directly, it uses ctags to implement code completion, but can be configured to use the Go language, Zeus Support code folding, automatic indentation, code navigation, GDB debugging.
Summarize:
The following two tables summarize some of the Ides discussed above, which illustrate the licensing of plug-ins or packages, running platforms:
The following table describes the feature items that are available in different ides:
Now, the Eclipse and IntelliJ plug-ins are very mature and have rich features to develop go applications. More lightweight choices like sublime Text2, TextMate, and liteide provide good support for syntax highlighting, pre-defined code snippets, Code autocomplete, and automatic formatting (using GOFMT), and NetBeans and Intype are very limited, They only provide syntax highlighting.
There is no discussion like vim and Emacs, because the focus is on the graphics editor. If you don't like the solution in this article and prefer to use a text-based editor, I suggest you look at how go integrates vim and Emacs.