Availability
vscode

About Instructions

Augment’s Instructions let you use natural language prompts to write or modify your code. Start using an Instruction by hitting Cmd/Ctrl I and select a predefined Instruction or write your own. The change will be applied as a diff and you can review or update your prompt before accepting.

Using Instructions

To start a new Instruction, select the code you want to change or place your cursor where you want to apply the change, then press Cmd/Ctrl I. You’ll be taken to a diff view where you can enter your prompt and see the results.

For example, you can generate new functions based on existing code:

> Add a getUser function that takes userId as a parameter

Your change will be made as a diff, so you can review the change before modifying your code. Use the following shortcuts or click the options in the UI to accept or reject the change.

ActionShortcut
Start instructionCmd I
AcceptReturn
RejectEsc