# Code Completion

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

> **TL;DR**
> `File | Settings | Editor | General | Code Completion | Popup` for Windows and Linux
>
>
>
> `GoLand | Settings | Editor | General | Code Completion | Popup` for macOS
>
>
>
> `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS)) ![the Settings icon](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.settings.svg)

Use this page to configure [code completion](auto-completing-code.html) and [parameter information](null)  .

| 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 for  |  Automatically complete your code if there's just one suggestion for basic and type-matching completion.  |
| Sort suggestions alphabetically |     Select if you want to sort items in the suggestion list in the alphabetical order instead of sorting them by relevance.       You can change this behavior at any time by clicking ![](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.more.svg) in the suggestion list and toggling the Sort by Name option.     |
|  Show suggestions as you type  |  Select this checkbox if you want the suggestion list [to be invoked automatically](null), without having to call completion explicitly.  |
|  Insert selected suggestion by pressing space, dot, or other context-dependent keys  |    Select the checkbox if you want to insert the selected suggestion by typing certain keys that depend on the language, your context, and so on.       |
|  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.     |
|    Insert parentheses automatically when applicable    |     If this option is enabled, GoLand automatically inserts a pair of opening and closing parentheseswhen you complete a function/method.      ![Insert parentheses on completion is enabled](https://resources.jetbrains.com/help/img/idea/2026.3/go_smart_keys_insert_parentheses_on.animated.gif)       Clear the checkbox to suppress inserting parentheses automatically.                        If you use an opening parentheses `(` instead of `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (VSCode), `⏎` (VSCode (macOS)) to apply the selected item from a completion list, parentheses will be inserted automatically no matter whether the option is turned on or off.       ![Insert parentheses on completion is disabled. Parentheses are still inserted on completion with an opening brace.](https://resources.jetbrains.com/help/img/idea/2026.3/go_smart_keys_insert_parentheses_off.animated.gif)     To use an opening parentheses `(` instead of `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (VSCode), `⏎` (VSCode (macOS)) to apply the selected item from a completion list,   open the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Comma` (VSCode), `⌘ Comma` (VSCode (macOS))), go to `Editor \| General \| Code Completion \| Popup`, and select the Insert selected suggestion by pressing space, dot, or other context-dependent keys  checkbox.       For more information, refer to [Use specific keys to insert suggestions](auto-completing-code.html#shortcuts_to_accept_suggestions).     |

## Machine Learning-Assisted Completion

| Item | Description |
| --- | --- |
|  Sort completion suggestions based on machine learning  |     Select this checkbox if you want to leverage machine learning models to rank most suitable items higher in the suggestion lists. Optionally, select languages where the ML-assisted completion should apply.        When this feature is enabled, GoLand will send and receive statistics of completion choices at different caret positions to train and apply ML algorithms. The statistics are fully anonymous, they include no names of types or functions.      |
| Mark position changes in the completion popup |  If you are trying to understand, how ML assistance affects the order of suggestions in completion lists, it might be helpful to mark items that the ML algorithm moved higher or lower relatively to the standard suggestion sorting. Otherwise, if you are happy with ML suggestions, you can clear this checkbox.  |
| Mark the most relevant item in the completion popup |  When enabled, this option allows you to see if there is a completion item that the ML algorithm considers to be the exact match for the current position. If such item exists, it will be marked with an asterisk.  |

## JavaScript

In this area, you can [configure code completion](auto-completing-code.html#code_completion_settings) in the JavaScript context.

| Item | Description |
| --- | --- |
|  Only type-based completion   |     By default, GoLand suggests completion for symbols regardless of their types. With this approach, in complicated cases the list shows multiple completion variants.                           To make completion more precise, select the checkbox. The completion list will strongly  depend on the GoLand  inference. As a result, the list may remain empty in case of poor inference.     |
|  Suggest items with optional chaining for nullable types                    |    By default, GoLand suggests completion for symbols with the [optional chaining operator (?)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining). To suppress showing such suggestions, clear the checkbox.     |
|   Expand method bodies in completion for overrides    |     By default,   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.        Clear the Expand method bodies in completion for overrides  checkbox to suppress automatic generation of method bodies for overrides during completion.     |
|  Completion of names   |      * Suggest variable and parameter names : By default, the checkbox is cleared. When it is selected, GoLand suggests names for new class fields, variables, and parameters 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.    * Suggest names for class fields The option is by default turned off.    * Add type annotations for suggested parameter names : Select this checkbox to supply each completion suggestion with information on its type. The checkbox is available only when the Suggest variable and parameter names checkbox is selected.    |

## Parameter Info

| Item | Description |
| --- | --- |
|   Show the parameter info popup in   |    Select this checkbox 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 suggestion 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` (Windows), `⌘ P` (macOS), `⌘ P` (IntelliJ IDEA Classic (macOS)), `⌘ P` (macOS System Shortcuts), `Ctrl+P` (XWin), `Ctrl+P` (GNOME), `Ctrl+P` (KDE), `Alt+Shift+P` (Emacs), `Ctrl+P` (Sublime Text), `Ctrl+P` (Sublime Text (macOS)), `Ctrl+Shift+Space` (VSCode), `⌘ ⇧ Space` (VSCode (macOS)) 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.  |

## SQL

| Item | Description |
| --- | --- |
| Suggest objects from |    Select where the objects are suggested from:       * The current search path only: only the schema selected for a console. For more information about selecting a schema, refer to [Set the default schema for a query console](schemas.html#set_default_schema_query_console).    * The current scope: the schema currently selected for a console and system schemas (for example, `pg_catalog` in PostgreSQL.    * All available schemas: all introspected schemas.     The current path only:     ![Objects suggested from the current path only](https://resources.jetbrains.com/help/img/idea/2026.3/suggest_objects_from_search_path.png)   The current scope:     ![Objects suggested from all the schemas](https://resources.jetbrains.com/help/img/idea/2026.3/suggest_objects_from_the_current_scope.png)   All schemas:     ![Objects suggested from all the schemas](https://resources.jetbrains.com/help/img/idea/2026.3/suggest_objects_from_all_schemas.png)    |
| Qualify objects with |    Select when to qualify the objects with databases, schemas, tables and views, and aliases of tables and views.         * Always: the qualified object names are always used, for example `<schema_name>.<object_name>`.    * On collisions: the qualified object name is used only if the short name is ambiguous, for example, when there is the object with the same name in more than one schema.    * Never: the unqualified object names are always used.      Table/View: Always:    ![Objects always qualified with tables](https://resources.jetbrains.com/help/img/idea/2026.3/qualify_objects_with_tables_always.png)   Table/View: Never:    ![Objects never qualified with tables](https://resources.jetbrains.com/help/img/idea/2026.3/qualify_objects_with_tables_never.png)    |
| Qualify objects in |    Select when to qualify the objects in the given cases.         * Always: the qualified object names are always used, for example `<schema_name>.<object_name>`.    * On collisions: the qualified object name is used only if the short name is ambiguous, for example, when there is the object with the same name in more than one schema.    * Never: the unqualified object names are always used.      JOIN completion: Always:    ![Objects in JOIN completions always qualified](https://resources.jetbrains.com/help/img/idea/2026.3/qualify_objects_in_join_completions_always.png)   JOIN completion: Never:    ![Objects in JOIN completions never qualified](https://resources.jetbrains.com/help/img/idea/2026.3/qualify_objects_in_join_completions_never.png)    |
| JOIN clauses |
| Use aliases in completion for JOIN | Creates aliases for tables in the `JOIN` statement.     ![Use aliases in completion for JOIN](https://resources.jetbrains.com/help/img/idea/2026.3/db_use_aliases_in_completion_for_join.png)  |
| 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](https://resources.jetbrains.com/help/img/idea/2026.3/db_invert_order_of_operands_in_on_clause.png)  |
| Suggest non-strict foreign keys based on the name matching |    Generates you a list of possible code completion suggestions for `JOIN` statements. The code completion list includes suggestions of the columns from other tables that have the same names as columns from the table in the `JOIN` statement.     Read more about debugging rules for this option in [Debug rules for virtual foreign keys](virtual-foreign-keys.html#debug-rules-for-virtual-foreign-keys).     Checkbox selected:    ![Suggest Non Strict Foreign Keys Based On The Name Matching is On](https://resources.jetbrains.com/help/img/idea/2026.3/db_suggest_non_strict_foreign_keys_based_on_the_name_matching_on.png)   Checkbox cleared:    ![Suggest Non Strict Foreign Keys Based On The Name Matching is Off](https://resources.jetbrains.com/help/img/idea/2026.3/db_suggest_non_strict_foreign_keys_based_on_the_name_matching_off.png)    |
| Table aliases |
| Automatically add aliases when completing table names | Creates an alias for a table name.     ![Automatically add aliases when completing table names](https://resources.jetbrains.com/help/img/idea/2026.3/db_add_aliases_for_table_names.png)  |
| Suggest alias names in completion after table names | Suggests an alias for a table name when you use code completion (`Ctrl+Space` (Windows), `⌃ Space` (macOS), `⌃ Space` (IntelliJ IDEA Classic (macOS)), `⌃ Space` (macOS System Shortcuts), `Ctrl+Space` (XWin), `Ctrl+Space` (GNOME), `Ctrl+Space` (KDE), `Alt+/` (Emacs), `Ctrl+Space` (Sublime Text), `⌃ Space` (Sublime Text (macOS)), `Ctrl+I` (VSCode), `⌘ I` (VSCode (macOS))).      ![Suggest alias names in completion after table names](https://resources.jetbrains.com/help/img/idea/2026.3/db_suggest_alias_names_in_completion.png)  |
| 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](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.add.svg)).     |

