JetBrains Fleet 1.44 Help

Use AI prompts to explain and refactor your code

Use prompts to explain code and find problems in your code.

Explain code

  1. Select a code fragment and right-click it to open the context menu.

  2. Select AI Actions and then Explain Selected Code.

    The AI Assistant tool window will open to provide you with an explanation.

    JetBrains Fleet AI Assistant explains code

Find problems

  1. Select a code fragment and right-click it to open the context menu.

  2. Select AI Actions and then Find Problems.

    The AI chat will open to show the potential issues you may want to look into.

    JetBrains Fleet: AI Assistant finds potential problems in the selected code

Modify built-in prompts

You can adjust how AI Assistant behaves in certain scenarios by modifying the prompts used for the corresponding actions.

  1. Do one of the following:

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

    • Press ⌘ , to open settings and then select Tools | AI Assistant | Prompt Library.

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

  3. Add new instructions.

  4. Click Apply.

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

Last modified: 12 December 2024