Query suggestion
AI query suggestion helps you finish entire SQL statements based on what youāve started typing. It works inside the SQL Editor and shows suggestions as ghost text.
Show the suggestion
To use the AI query suggestion:
- Activate the AI assistant.
- Enable AI query suggestion in the SQL Competition preferences.
- Start writing a query in the SQL Editor.
-
Add a comment above the query to guide the AI.
Note
You need to place your cursor where you want the query to appear.
-
Right-click anywhere in the Script panel to open the context menu, then select AI commands -> Show AI Suggestion Text. Or use the shortcut:
- ā„+ā+ā (macOS).
- Alt+Ctrl+ā (Windows).
-
Do one of the following:
- Press ā, Tab, or Enter to insert the suggestion.
- Press Esc to dismiss it.
Tip
To change the background and foreground colors of the suggestion hint, navigate to Window -> Preferences -> User Interface -> Appearance -> Colors and Fonts.