WebStorm 2024.1 Help

Generate documentation with AI

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

  1. Place the caret at a code fragment and right-click to open the context menu.

  2. Select AI actions and then Write documentation.

    Write Documentation context menu item

    AI Assistant will generate documentation for you.

    Generated documentation

Alternatively, instead of using the context menu, type /**, press Enter and click Generate with AI Assistant.

Generate with AI Assistant
Last modified: 24 April 2024