After that, each time you autocomplete a table name, DataGrip will generate an alias for the table. In the SQL section, select the Automatically add aliases when completing table names checkbox. To automatically add an alias for a table when you use auto-completion, go to Settings Control+Alt+S and navigate to Editor | General | Code Completion. To display the suggestion list, press Control+Space. When you have ambiguous names in a query, DataGrip displays the context.Ĭonsider the following list of actions that you can perform with basic code completion: Press Control+Space or choose Code | Code Completion | Basic from the main menu. However, DataGrip does not recognize the structure of such files, and suggests options regardless of whether they are appropriate in the current context.īasic completion is also available for a non-English keyboard layout. When you invoke code completion, DataGrip analyses the context and suggests the choices that are reachable from the current caret position (suggestions also include Live templates).Ĭode completion is available for custom file types. Basic completionīasic code completion helps you complete statements, database object names, parameters, and keywords within the visibility scope. This section covers various techniques of context-aware code completion that allow you to speed up your coding process.