AI Assistant Help

Generate documentation

With AI Assistant, you can generate documentation for any item declaration using the LLM (Large Language Model).

In RustRover, Doctests will be included wherever possible.

  1. Place the caret at the desired item and right-click to open the context menu.

  2. In the context menu, select AI actions and then Write documentation.

    Write Documentation context menu item

    AI Assistant will generate documentation for the selected item.

    Generated documentation

You can customize the prompt for the Write Documentation action in Settings | Tools | AI Assistant | Prompt Library | Write Documentation.

Last modified: 14 April 2025