Gogland EAP 17: Type Hierarchy, Call Hierarchy, Parameter Hints, Vendor Scope, and More
To make the code navigation and search more straightforward, we moved the code from inside the vendor directories out of the Project Files scope and made it a part of the Project & Libraries scope instead. Now when you use an IDE feature you can control whether you want to include or exclude the code from the vendor folders. As an added bonus, because of how scopes work in the IDE, now you can also manage the way the code is visually presented:
Hierarchy tool window
There are two new features to help you work with the code: Type Hierarchy (Ctrl+H) and Call Hierarchy (Ctrl+Alt+H). Both are available on demand and appear in the Hierarchy tool window.
Type Hierarchy works when your caret is at an interface or a struct:
Based on the mode selected in the tool window toolbar, the interface displays either when the type at caret extend or implements, or when the types that implements the type at the caret:
Call Hierarchy works when your caret is at a function reference and collects the tree of function calls inside the function.
Note: The Hierarchy tool window is are not automatically updated as you navigate through the source code, it has to be triggered manually.
Parameter hints for named return values
The Parameter Hints already familiar to you have been updated and now display the hints for the named return values:
The Diff viewer now supports the Ignore imports and formatting option for Go files:
This comes handy if you want to focus only on the changes in the code itself, not import statements or formatting.
- The File Watchers which were recently introduced to replace On Save actions haven’t respected environment variables when executing. Now they do.
- The IDE now warns you if the code uses non-strict comparison of integer types with the maximum or minimum values. Such checks are always true and may indicate a possible bug.
- When using a version of Go prior to 1.8, the IDE reports incorrect conversions of structs with tags.
- Last but not least, there’s a new inspection that finds unnecessarily exported identifiers and prompts unexport them via a quick-fix. You can either enable it or run it manually on the scope you need:
Since we’re approaching the release date, we very much appreciate your feedback. Please report any issues or glitches you find and simply share your feedback. Thanks for helping us make the release great. Stay tuned!
Subscribe to Blog updates
The GoLand 2023.3 Early Access Program Has Started!
The Early Access Program for GoLand 2023.3 is now open!
GoLand 2023.2 Reaches Beta!
The Beta provides all of the new features and improvements already announced during our current EAP cycle.
GoLand 2023.2 EAP #7: LSP API Support, and HTTP Client Improvements
This build includes support for LSP API and improvements for HTTP Client.