Multiple selections

Select multiple items faster

Multiple selections is a very powerful feature in the editor, that lets you quickly select and edit multiple pieces of code at once.

How to use:

Select something as you normally would, or press ^G (macOS) / Alt+J (Windows/Linux), to select the symbol at the caret.

GoLand will search through the current file until it finds a matching piece of text, which it then adds to the selection.

You can press ^G (macOS) / Alt+J (Windows/Linux) again to go forward further, or ^⇧G (macOS) / Alt+Shift+J (Windows/Linux) to go backward. When the search reaches the end of the file, it will start over again from the beginning.

Related Resources

Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice
Empower your `Printf`-like functions with coding assistance
Provide hints and highlights for message formats in custom `Printf`-like functions