| 1 | --- |
| 2 | title: "Quick Start with Continue Edit" |
| 3 | sideBarTitle: "Quick Start" |
| 4 | description: "Get started with Continue's Edit feature for making quick, targeted code changes directly in your file using AI suggestions, with keyboard shortcuts for accepting or rejecting modifications" |
| 5 | --- |
| 6 | |
| 7 | ## How to Continue Edit |
| 8 | |
| 9 | 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. |
| 10 | |
| 11 | Edit is recommended for small, targeted changes, such as |
| 12 | |
| 13 | - Writing comments |
| 14 | - Generating unit tests |
| 15 | - Refactoring functions or methods |
| 16 | |
| 17 | ## How to Activate Edit |
| 18 | |
| 19 | 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. |
| 20 | |
| 21 | Once you've activated Edit, you're ready to provide instructions. |
| 22 | |
| 23 | ### How to Provide Instructions |
| 24 | |
| 25 | 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). |
| 26 | |
| 27 | ### How to Accept or Reject Changes |
| 28 | |
| 29 | Proposed changes appear as inline diffs within your highlighted text. |
| 30 | |
| 31 | 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. |
| 32 | |
| 33 | 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. |
| 34 | |
| 35 | 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. |
| 36 | |
| 37 | ## How to Use Edit in Jetbrains |
| 38 | |
| 39 | In Jetbrains, Edit is implemented as an inline popup. See the header GIF example. |