GoLand 2019.3 EAP 4 is Out with MongoDB Support and Importing & Handling Known Package Aliases

Get this EAP build via the Toolbox App, download from the website, or use a snap package (for Ubuntu). Or, right in GoLand, select Automatically check updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.

Download GoLand 2019.3 EAP 4

Remember that you can also use nightly builds based on the latest development code almost every day, if you don’t want to wait for the official announcements of EAP builds. Note they are available via the Toolbox App only.

MongoDB

GoLand 2019.3 EAP 4 has basic support for MongoDB!

Now you can view collections and fields in the database explorer.

database_view

Open any collection or observe the query result. It’s also possible to sort by columns or filter the values.

data_view

Run queries and get the results. Select a statement and run it by pressing Ctrl/Cmd+Enter or by using the Play button on the toolbar.

query

Your feedback is vital to us! Please share your thoughts in the comments below or in our bug tracker, or tweet us @GoLandIDE.

Enhanced handling of package aliases

GoLand now suggests importing packages based on their used aliases via Alt+Enter in any file in your project.

enhanced-handling-package-aliases

Improved code folding for composite literals

GoLand provides code folding for composite literals. Use the code folding toggles to fold or expand the code fragment, or press Ctrl+NumPad –/Ctrl+NumPad Plus on Windows or ⌘+NumPad –/⌘+NumPad Plus on macOS. To configure the default code folding behavior, go to Settings/Preferences | Editor | General | Code Folding.

code-folding-composite-literals

Notable bug-fixes:

GO-8186 — the debugger works well with projects using Go 1.10.

Posted in EAP, New Features | Tagged , , | 2 Comments

Top 25 Editing Features of GoLand IDE – Part 3

Today we publish the last part of the series about the Top 25 Editing Tips. In case you missed the previous articles, you can go back and read part 1 and part 2 before you read this and give your productivity a boost.

Let’s see what’s in this article:

And here are the tips from the other articles in the series:

Continue reading

Posted in Features, Tutorial | Tagged , , , | Leave a comment

Top 25 Editing Features of GoLand IDE – Part 2

In today’s article, we continue the series about the Top 25 editing features of the IDE that will boost your productivity. The previous post can be found here.

And here are the tips from the other articles in the series:

Let’s start with today’s tips!

Continue reading

Posted in Features, Tutorial | Tagged , , , | Leave a comment

GoLand 2019.2.3 is Out!

Please welcome GoLand 2019.2.3 with a bunch of bug-fixes!

Download GoLand 2019.2.3

Update to it via the Toolbox App, go to 2019.2.2 and click Help | Check for Updates, or download a copy from our website.

GO-7213, GO-7830, GO-6689 — We’ve fixed several issues with incorrect indents, and now GoLand works as expected in blocks inside switch cases, after an if with a multiline condition, and after an if/else.

GO-8074, GO-8051Evaluate and Log in the debugger prints the value in the debug console as expected, and the debugger itself works correctly with string values containing non-ASCII symbols.

GO-6545 — Method-like code completion doesn’t reformat a raw string after being applied.

JBR 11 (default) was updated to 11.0.4+10-b304.69 with the following fixes included:

JBR-1702 — JetBrains Runtime has been rebased on top of OpenJDK 11.0.4.

JBR-1649 — Fixed the issue with an empty bar overlapping the navigation bar.

JBR-1721 — Fixed the issue that affected the opening of projects on macOS Catalina.

JBR-1696 — Fixed the issue where the focus was being lost after displaying the Add File to Git dialog.

JBR-1778 — Fixed the incorrect font formatting (always italics) in the editor.

JBR 8 was updated to 1.8.0_212-release-1586-b14 and these issues were fixed:

JBR-1624, JBR-1683 — Fixed broken Fira Code font rendering.

We always appreciate your feedback! Please tell us what you think by dropping us a request in our bug tracker or by tweeting us @GoLandIDE. Thank you!

Posted in Releases | Tagged , | Leave a comment

Top 25 Editing Features of GoLand IDE – Part 1

Today’s post is the first one in a mini-series of posts looking at the top 25 editing features in GoLand. The best part about these features? They require zero configuration and are all built into the IDE by default, without the need to search for or install any plugins.

In case you missed our previous post about Code Completion tips, we recommend giving it a look to discover even more useful tips.

Without wasting any more time, let’s jump into the topics:

And here are the tips from the other articles in the series:

Continue reading

Posted in Features, Tutorial | Tagged , , , | Leave a comment

GoLand 2019.3 EAP 3 is Out with New Quick-fixes, Ability to Call Method of an Embedded Field in the Debugger, and More

Get this EAP build via the Toolbox App, download from the website, or use a snap package (for Ubuntu). Or, right in GoLand, select Automatically check updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.

Download GoLand 2019.3 EAP 3

Remember that you can also use nightly builds based on the latest development code almost every day, if you don’t want to wait for the official announcements of EAP builds. Note they are available via the Toolbox App only.

New quick-fixes

Now it’s possible to remove all unused parameters in one go. Press Alt+Enter and select the Delete all unused parameters quick-fix.

delete-all-unused-parameters

GoLand provides a quick-fix to create a missing function or method if there is no call. Just press Alt+Enter and choose Create method/function.

сreate-method-function-quick-fix

Improvements for Postfix Completion templates

Postfix Completion templates now work well on function and method call results. Similarly, custom templates work correctly on user-specified types.

Debugger

The Evaluare Expression in the debugger now allows you to call a method of an embedded field directly.

evaluare-expression-update

Set a custom shortcut for returning the focus to the editor

Now you can set your custom shortcut for the action that takes the focus back to the editor, instead of using ESC.

Find the Focus Editor action in Preferences/Settings | Keymap, right-click it, and select Add Keyboard Shortcut from the drop-down.

focus-editor

Find in Path displays file extensions in the search results when using a file mask option

Now when you search in the Find in Path dialog using a file mask, GoLand shows the file extensions in the search results accordingly. This makes it easier for you to distinguish between files with the same name but with different file extensions.

find-in-path-update

VCS

Reworked Clone dialog

The Clone dialog is located under VCS | Get from Version control. Now you can log in from this dialog, or if you’re already logged in, the IDE will instantly preview the lists of all repositories grouped by accounts or organizations.

reworked-clone-dialog

Timeline for GitHub Pull Requests

We’ve updated the Pull Requests tab, which lets you view the list of all pull requests in the project and browse through them to see the changes and their current status. Now it displays a timeline with all the relevant information about a pull request, such as comments, reviews, and updates made to pull requests.

Simply double-click a pull request, and the IDE will display the comments in the editor tab.

timeline-github-pr

Force-add a file from an .ignore list to a VCS

Now it’s possible to force-add a file to Git (or Mercurial) if it was in the ignore list.

Posted in EAP, New Features | Tagged , | Leave a comment

GoLand 2019.3 EAP 2 is Out!

Get it via the Toolbox App, download from the website, or use a snap package (for Ubuntu). Or, right in GoLand, select Automatically check updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.

Download GoLand 2019.3 EAP 2

You can also use nightly builds based on the latest development code almost every day, if you don’t want to wait for the official announcements of EAP builds. Note they are available via the Toolbox App only.

Code editing

For unused parameters, GoLand highlights its name and type if both can be removed, or only the name if the type is used for implementing a method specification.

In the latter case, the IDE now provides two quick-fixes for you to choose from: Delete parameter names or Rename to _. The same behavior is provided for functions that are used as a function type.

quick-fixes-for unused
Continue reading

Posted in EAP, New Features | Tagged , | Leave a comment

Shell Scripting with GoLand 2019.2

Go developers may rely at times on shell scripts to perform various tasks. In this post, we’ll have a look at the new builtin support for Shell scripting in GoLand 2019.2.

First, we need a new shell script file, let’s call it hello.sh.

As you have probably noticed already, the IDE will also prompt you to install a helper application. This is called ShellCheck, and it’s going to help you check your shell scripts against common issues and look for possible optimizations.

Continue reading

Posted in Features, New Features | Tagged , | Leave a comment

GoLand 2019.3 Opens its Early Access Program!

The first Early Access Program (EAP) build for GoLand 2019.3 is ready for you to try. You can get it via the Toolbox App, download from the website, or use a snap package (for Ubuntu). Or, right in GoLand, select Automatically check updates for Early Access Program in Preferences / Settings | Appearance & Behavior | System Settings | Updates.

blog@2x

A month ago we published our roadmap for 2019.3. In it, we briefly outlined our primary goal for this release – fighting bugs, glitches, unexpected behavior, usability, and performance issues. However, it looks like we will add a few new things too.

Download GoLand 2019.3 EAP 1

If you’re new to GoLand and wondering about this Early Access Program business, here’s what it’s all about.
Continue reading

Posted in EAP, New Features | Tagged | 10 Comments

GoLand 2019.2.2 is Out!

The GoLand 2019.2.2 bug-fix update is out!

Download GoLand 2019.2.2

Update to it via the Toolbox App, go to 2019.2.1 and click Help | Check for Updates, or download a copy from our website.

Performance and UI

We’ve fixed several performance and usability issues:

GO-8031 — GoLand now shows the ‘implemented’ icon for a method much faster as it processes fewer elements during analysis.

GO-8034 — The UI doesn’t freeze anymore when clicking on the gutter icon for a type that implements the interface and has a lot of methods.

GO-7952Fill Fields is more helpful when you use existing variables as field values.

Refactorings

GO-8065, GO-8068Extract Interface respects existing declarations and doesn’t complain about unexported receiver’s type if it’s not used in the newly created interface.

GO-7982Change Signature takes care of the package prefix in tests.
Continue reading

Posted in Releases | Tagged , | 2 Comments