| 1 | --- |
| 2 | title: "Quick Start" |
| 3 | --- |
| 4 | |
| 5 | ## How to use it |
| 6 | |
| 7 | Edit is a convenient way to make quick changes to specific code and files. Select code, describe your code changes, and a diff will be streamed inline to your file which you can accept or reject. |
| 8 | |
| 9 | Edit is recommended for small, targeted changes, such as |
| 10 | |
| 11 | - Writing comments |
| 12 | - Generating unit tests |
| 13 | - Refactoring functions or methods |
| 14 | |
| 15 | ## Highlight code and activate |
| 16 | |
| 17 | Highlight the block of code you would like to modify and press `Cmd+I` (Mac) or `Ctrl+I` (Windows/Linux) to activate Edit mode. You can also press `Cmd/Ctrl+I` with no code highlighted, which will default to inserting code at the current cursor location. |
| 18 | |
| 19 | ## Describe code changes |
| 20 | |
| 21 | Describe the changes you would like the model to make to your highlighted code. For edits, a good prompt should be relatively short and concise. For longer, more complex tasks, we recommend using [Chat](/features/chat/quick-start). |
| 22 | |
| 23 | ## Accept or reject changes |
| 24 | |
| 25 | Proposed changes appear as inline diffs within your highlighted text. |
| 26 | |
| 27 | You can navigate through each proposed change, accepting or rejecting them using `Cmd+Opt+Y` (Mac) or `Ctrl+Alt+Y` (Windows/Linux) to accept, or `Cmd+Opt+N` (Mac) or `Ctrl+Alt+N` (Windows/Linux) to reject. |
| 28 | |
| 29 | You can also accept or reject all changes at once using `Cmd+Shift+Enter` (Mac) or `Ctrl+Shift+Enter` (Windows/Linux) to accept, or `Cmd+Shift+Delete` (Mac) or `Ctrl+Shift+Backspace` (Windows/Linux) to reject. |
| 30 | |
| 31 | If you want to request a new suggestion for the same highlighted code section, you can use `Cmd+I` (Mac) or `Ctrl+I` (Windows/Linux) to re-prompt the model. |
| 32 | |
| 33 | |
| 34 | ## Jetbrains |
| 35 | |
| 36 | In Jetbrains, Edit is implemented as an inline popup. See the header GIF example. |