GoLand 2019.2 Help

Code Completion

File | Settings | Editor | General | Code Completion for Windows and Linux
GoLand | Preferences | Editor | General | Code Completion for macOS
Ctrl+Alt+S the Settings/Preferences icon


Use this page to configure code completion and parameter information.

Item

Description

Match case

Select this option if you want letter case to be taken into account when suggesting matches for code completion. Choose whether you want to match case for the first letter of for all letters.

Automatically insert single suggestions

Choose whether you want to automatically complete your code if there's just one code completion suggestion for basic and/or smart completion.

Sort suggestions alphabetically

Choose this option if you want to sort items in the suggestions list in the alphabetical order instead of sorting them by relevance.

You can change this behavior at any time by clicking the sort alphabetically or sort by relevance icons in the suggestion list.

Show suggestions as you type

Select this checkbox if you want the suggestions list to be invoked automatically, without having to call completion explicitly.

Insert selected suggestion by pressing space, dot, or other context-dependent keys

Select if you want to insert the selected suggestion by typing certain keys that depend on the language, your context, etc.

Show the documentation popup in

Select this checkbox to have GoLand automatically show a popup for each item in the suggestions list with the documentation for the class, method, or field currently highlighted in the lookup list.

In the field to the right, specify the delay (in milliseconds), after which the popup should appear.

Show parameter name hints on completion

Select if you want hints for parameter values to be displayed.

Show the parameter info popup

Select to have GoLand automatically show a popup with all available method signatures when an opening bracket is typed in the editor, or a method is selected from the suggestions list.

In the text field to the right, specify the delay (in milliseconds) after when the popup window should appear.

If this checkbox is not selected, use Ctrl+P to show parameter info.

Show full method signatures

If this checkbox is selected, the parameter info displays full signatures, including method name and returned type.

Only type-based completion

  • When this checkbox is cleared, the completion list contains multiple variants in complicated cases.

  • When the checkbox is selected, the completion list strongly depends on the GoLand type inference. This makes completion more precise but in case of poor inference the list may be empty.

By default, the checkbox is cleared.

JavaScript

In this area, configure code completion in the JavaScript context.

  • Suggest variable names: when this checkbox is selected, GoLand suggests names for new variables during their declaration. These suggestions are based on the names of classes, types, and interfaces that are defined in your project, in the libraries you are using, and in standard APIs.

    By default, the checkbox is cleared.

  • Suggest type annotations with parameter names: when this checkbox is selected, GoLand supplies each completion suggestion with information on its type.

    This checkbox is available only when the Suggest variable names checkbox is selected.

  • Expand method bodies in completion for overrides: when you want to override a method from the parent class or interface and select this method from the list of completion suggestions, GoLand automatically adds parameters, generates a super() call, and adds the type information, if possible.

    By default, the checkbox is selected. Clear it to suppress automatic generation of method bodies for overrides during completion.

Use aliases in completion for JOIN

Creates aliases for tables in the JOIN statement.

Use aliases in completion for JOIN

Invert order of operands in auto-generated ON clause

Switches operands in the ON clause. When the checkbox is cleared, the FROM table comes the first in the JOIN condition.

Invert order of operands in auto-generated ON clause

Automatically add aliases when completing table names

Creates an alias for a table name.

Automatically add aliases when completing table names

Suggest alias names in completion after table names

Suggests an alias for a table name when you use code completion (Ctrl+Space).

Suggest alias names in completion after table names

Custom aliases (table)

You can add a table name and the alias that you want to use for this table. To add the table-alias pair, click the Add alias button (the Add alias button).

The Custom aliases table
Last modified: 6 September 2019