Skip to content

AI Toolbox Comments

refact-planner edited this page Jun 7, 2026 · 1 revision

Comments

Add explanatory comments to selected code with a toolbox command.

The default /comment toolbox command asks the model to add comments to the selected code. It is intended for short selections where line-by-line or block-level comments will make the code easier to read.

Use it when:

  • You want quick documentation for unfamiliar code.
  • The selection is small enough to review immediately.
  • Comments add context that is not already obvious from names and structure.

Review the output before keeping it. For broader documentation work across multiple files, use chat or Agent mode instead.

Clone this wiki locally