Instructions
Use Instructions to write or modify blocks of code using natural language. Refactor a function, write unit tests, or craft any prompt to transform your code.
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:
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.
Action | Shortcut |
---|---|
Start instruction | Cmd I |
Accept | Return |
Reject | Esc |