This is a creation in Article, where the information may have evolved or changed.
If you use idea 14 to develop a go program, you need to install Go-lang-idea-plugin, but the plugin version provided by idea is 0.9. Version 15 This version has various bugs especially for idea 14.
I tried a lot of methods and still can't use the Go-lang-idea-plugin 0.9.15 plugin is a headache! But despair after a search after Baidu still found a glimmer of hope.
My local environment is as follows:
1.os:mac OS YOSEMITE 10.10.1
2. IntelliJ idea + for MAC
3. Download Go-lang-idea-plugin 0.9.16-alpha.9
https://github.com/go-lang-plugin-org/go-lang-idea-plugin/releases/
There are various versions of plugins here.
The latest version on GitHub is Go-lang-idea-plugin 1.0.0 version, but does not provide the compiled version, if you want to taste only download source code compiled!
4. Open Preferences (Mac shortcut command+,)
The third step is to select the plugin (google-go-language.jar) that you just downloaded, and restart idea to use it properly.
Last Cut!