Question: What is the best IDE to use when writing golang?
Keep in mind there is no right answer to this question, but I will give you a few great options and then you can choose for yourself.
Also, please note that some of the options listed below are not technically IDEs, but because of the many extensions and features you can add to them, the line becomes blurry between a text editor and an IDE.
Option #1: VSCode
Visual studio code is an excellent choice for writing go code. It is developed by Microsoft and is updated regularly. VSCode is technically a text editor, but you can compile and run your code from the built in terminal, and there are many great extensions for golang which allow you to use debugging, syntax highlighing, and autocomplete.
- Excellent built in terminal
- Light and dark themes
- Plug-ins for git, docker, and databases
- Intellisense autocompletion plug-ins
- Documentation help
- Frequent updates
VSCode has many great themes you can install to customize the look and feel as well as a plethora of handy plugins for working with git, collaborating, displaying unique file icons, and more. One of the many advantages of using VSCode is that because it is a hybrid between an IDE and a text editor you can use it to create any type of file, so once you get used to it you'll never have to switch between editors again. In fact, I'm using VSCode to write this post right now!
Overall I would give VSCode an 8/10 because of it's great support, abundance of extensions and themes, ease of use, and versatility.
Option #2: GoLand
- Error detection
- Built in temrinal
JetBrains makes excellent products and Goland is no exception. However, it does come at a hefty price tag. You can get a year license for $199.00. If you'd like to give it a try before buying they do offer a 30 day free trial.
If Goland was free, I would give it a 8/10, but because of the hefty price tag, I'm going to give it a 7/10.
Option #3: Atom
Atom is an editor developed by GitHub. It has plug-in support for golang, git, autocompletion, offers easy customization and comes with some great light and dark themes.
- Light and dark themes
- Plug-ins for anything you can imagine
- Github integration
Atom is an excellent, editor but many people in the development community have moved away from atom to favor VSCode. This means that there are not as many people developing and maintaining the plugin-ins or themes.
I'd give atom a 7/10