The Change Code with AI feature is an open-ended, prompt-based feature that allows you to describe what you want done to a selected block of code in a conversational manner.
Basic Workflow
- Select the block of code you want to modify.
- Run Change Code with AI to open the prompt dialog.

- Describe what you want in the prompt.
Example: Optimize this, rename these variables, refactor for readability, convert this loop.

- VA Intelligence presents the results with a diff view of the proposed changes.
The before-and-after comparison allows you to inspect the proposed code, and regardless of how broad or unusual the prompt is, no changes are applied without review.

- Review the changes and choose to regenerate, reject, or accept them before making the changes permanent.