RustRover 2024.3 Help

Get AI assistance for VCS integration

Generate commit messages

AI Assistant can send your diffs to the LLM (Large Language Model), which will generate a commit message describing your changes.

  1. Press Alt+0 to open the Commit tool window.

  2. Click Generate Commit Message with AI Assistant.

    RustRover: AI Assistant generates commit messages
  3. Edit the message if necessary.

    RustRover: AI-generated commit message

Customize the commit message generation prompt

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

  2. In the Built-In Actions section, select Commit Message Generation.

    The list of default rules for commit message generation prompt
  3. In the editor field on the right, specify the rules for commit message generation, like the required number of characters or a different language.

  4. Click Apply.

Edit and improve commit messages

When you have already committed your changes, you can still edit your commit message. Use AI Assistant to help you analyze and better describe the committed changes.

  1. Click in the bottom-left corner or press Alt+9 to open the version control tool window.

  2. In the commits pane, right-click the commit you want to update and select Edit Commit Message in the context menu.

  3. In the dialog that opens, click Improve Commit Message with AI Assistant.

    Dialog with an old commit message and the AI Assistant icon

    AI Assistant analyzes the committed changes and generates an improved message.

  4. Edit the new message if necessary and click OK to save the changes.

  5. If the commit has already been pushed to the remote repository, press Ctrl+Shift+K to push the updated commit message as well.

Explain commits

AI Assistant can summarize the changes made in one or several commits.

  1. Click in the bottom-left corner or press Alt+9 to open the version control tool window.

  2. In the commits pane, select the commit or several commits you want to summarize, right-click them and select Explain Commit with AI Assistant in the context menu.

    Explain Commit with AI Assistant option in VCS log

    AI Assistant provides the summary of the selected commits.

    AI Assistant explains commit

Generate title and description for pull and merge requests

AI Assistant can generate titles and descriptions for pull requests and merge requests directly from RustRover.

Resolve Git conflicts with AI

When multiple contributors are working with the same part of the codebase, you may encounter overlapping changes that cannot be merged automatically.

RustRover has a tool to resolve any such conflicts, and AI Assistant can help you by automatically merging conflicting changes.

  1. In the Merge Revisions dialog, click Merge with AI.

    AI Assistant then merges both non-conflicting and conflicting changes.

  2. Review the merged result in the central pane of the dialog, edit if necessary, and click Apply.

    Revert changes in the modified lines by clicking Revert.

For more information about merging conflicting changes, refer to Resolve Git conflicts.

Generate shelf title

When you silently shelve your changes, the new shelf gets the default Changes name. With a lot of shelves, it can become confusing to find the necessary changes.

Instead of manually renaming each shelf, use AI Assistant to automatically generate a title for the silently shelved changelist.

  1. Press Alt+0 to open the Commit tool window.

  2. Select the file or changelist you want to shelve and click Shelve silently Shelve Silently on the toolbar or press Ctrl+Shift+H.

    AI Assistant will automatically generate the shelf name for the shelved changes.

To switch off this feature, press Ctrl+Alt+S to open the settings, go to Tools | AI Assistant, and clear the Generates title for shelved change list checkbox.

Last modified: 11 December 2024