AI Assistant Help

Add and customize prompts

You can define your own custom prompts and add them to the AI Actions menu, or modify the built-in prompts.

Add your own prompts to prompts library

You can add your own prompts to the prompts library and use them via the AI Actions menu.

  1. Do one of the following:

    • Right-click anywhere in the editor to open the context menu, then go to AI Actions | Add Your Prompts.

    • Press Alt+Enter, select AI Actions, and click Add your prompts.

    • Press Ctrl+Alt+S to open settings and then select Tools | AI Assistant | Prompt Library.

  2. Click to create a new prompt.

    User prompts library settings
  3. In the text field, write the prompt.

    If needed, click the $SELECTION variable to add a Markdown-formatted code block with current code selection and language name to the new prompt.

  4. Edit the new prompt name.

  5. (Optional) Enable the Wait for additional user input after invoking setting if you want AI Assistant to wait for you to make additional input in the chat after invoking the prompt.

  6. (Optional) Keep the Show prompt in 'AI Actions' popup enabled if you want your new prompt to be listed in the AI Actions menu.

    Custom prompt parameters
  7. Click Apply.

Once you create a prompt, you can edit or delete it at any time.

You can also move your custom prompts up or down the list to change the order in which the prompts are displayed in the AI Actions popup.

Modify built-in prompts

You can adjust how AI Assistant behaves in certain scenarios by modifying the prompts used for the corresponding actions. For example, you can add specific guidelines for commit message generation.

  1. Do one of the following:

    • Right-click anywhere in the editor to open the context menu, then go to AI Actions | Add Your Prompts.

    • Press Alt+Enter, select AI Actions, and click Add your prompts.

    • Press Ctrl+Alt+S to open settings and then select Tools | AI Assistant | Prompt Library.

  2. Select the action for which you want to modify the prompt.

    Select the action
  3. Add new instructions.

  4. Click Apply.

The provided instructions will be appended to the default prompt, extending the functionality of the corresponding action.

25 July 2025
Morty Proxy This is a proxified and sanitized view of the page, visit original site.