1. Select a code fragment and right-click to open the context menu.
  2. Select AI actions and then Generate documentation.