Custom prompts

Use a custom prompt to let AI Assistant help you.

Create your own custom prompts for AI Assistant. For example, to add logging to your code.

Open Settings and go to Tools | AI Assistant | Prompt Library and click + to create a new prompt. Write your new prompt in the text field. If needed, click the $SELECTION variable to add a Markdown-formatted code block with current code selection and language name to the new prompt. Edit the Prompt name.

Select the first checkbox if you want AI Assistant to wait for you to make additional input in the chat after invoking the prompt.

Keep the second checkbox if you want your new prompt to be listed in the AI Actions menu. If you don't select this checkbox, the custom prompt will only be available from the chat window.

Click Apply to save your prompt.


Related Resources

Explain Spring Data QL fragment
Explain Spring Data QL fragment
Let AI Assistant explain a Spring Data QL fragment.
Inline Completion Shortcut
Inline Completion Shortcut
Choose which key to use for inline AI completion.
Resolve merge conflict
Resolve merge conflict
Let AI Assistant help you resolve merge conflicts.