Back

Inline AI

Code Actions

Code actions give you quick AI-powered operations on selected code or terminal output.

What are code actions?

Code actions appear when you select code in the editor. They include AI-powered options: Explain Selection, Fix Selection, and Improve Selection.

How do I trigger a code action?

Select a block of code, then click the lightbulb icon or press ⌘. to see available actions. Choose an AI action to send the selection to the chat panel with the appropriate prompt pre-filled.

Are there terminal code actions?

Yes. In the integrated terminal, select an error message and right-click to see Explain Terminal Error and Fix Terminal Error. These send the selected output to the AI for analysis.