As you may already know, Gogland‘s functionality is now available as a plugin for IntelliJ IDEA, Android Studio and other JetBrains IDEs. Note that the plugin requires the IDE to be v2017.1 or higher version.
New versions of the plugin will appear along with (or right after) new Gogland EAP releases. For those who’d like to have access to the most recent changes and new features, we offer a channel with nightly builds of the plugin.
To receive nightly versions of the plugin, please register “https://plugins.jetbrains.com/plugins/nightly/9568” as a Repository URL in Settings | Plugins | Browse repositories | Manage repositories.
Run to cursor action that resumes code execution and stops at a given line is now available both via shortcut and from the menu.
Breakpoints now support Conditional expressions that let you define conditions under which they will be hit:
Data representation inside Variables, Watches, Evaluate Expression, Inspect and inline information is improved: it displays nested objects, supports arrays, etc.
Also, the update brings several new intention actions, that let you add an alias for an import statement and replaces all usages accordingly:
And to invoke go generate for a generated comment at the caret:
The “err” live template has been improved and now it is aware of the error variables within the scope:
In Settings | Editor | General | Code Folding the IDE offers two new options (off by default): One line returns and One line panics. These options fold single-line if statements with return and panic statements inside to a more compact syntax:
We’ve merged changes from IntelliJ IDEA 2017.1 that include all the platform improvements and new features, the most notable of which is the reworked Find in Path dialog, that now provides instant preview of the sought text and lets you jump to any result with Enter:
And, of course, many small, but important Go improvements:
Faster Code completion
Rename and Find usages for packages, imports and qualifiers
Validation of canonical import paths
File Rename now renames the corresponding test file as well
Highlighting and filtering generated files in Find usages/Refactorings according to the proposal
Bugfixes in the Formatter, Inspections, Refactorings and Completion
Last, but not least, we’re happy to announce the availability of the Go plugin for IntelliJ IDEA Ultimate and other paid IDEs which provides the functionality equal to Gogland. Read the FAQ to see how it differs from the third-party plugin.
Note that there’s no patch update available due to the migration to IntelliJ Platform 2017.1.
That’s it for today. Feel free to give the new EAP build a try right away and share your feedback with us through the comments as well as the issue tracker.
Three years ago we at JetBrains made a strategic decision to contribute to go-lang-idea-plugin, the open-source initiative aimed at building an IntellIJ plugin for Go. Over these three years we believe our efforts (3,000 commits in total) have helped rebuild the plugin from the ground up, giving users a more stable, extensible and feature-rich development experience.
Last year we started tracking the number of unique users of the plugin. This number has doubled in the last year alone up to 30K monthly active users. This fact, along with lots of users asking us to bring IntellIJ-like coding experience to Go, convinced us to finally fork go-lang-idea-plugin half a year ago and introduce our own IDE for Go. We assembled a dedicated team to work on improving Go tools support and overall development experience.
Today we announce Gogland, a brand new Go IDE and the latest addition to the IntelliJ family. Though Gogland is still under heavy development, today we’re opening its private EAP (Early Access Program), so you have a chance to become an early Gogland adopter.