Changesets · Branches · Tags · Compare
| Changeset | 22e692d8011393f37aabaae6fe2cc07196ab81fa2b759d3788a0da9b1d2dbddc |
|---|---|
| Author | Brian Douglas <bdougie@users.noreply.github.com> · 2025-07-21 14:37 -07:00 |
| Committer | GitHub <noreply@github.com> · 2025-07-21 14:37 -07:00 |
| Parents | 796feb88992e |
6 files changed
modified docs/features/edit/context-selection.mdx +1 −5
| @@ -4,8 +4,4 @@ | ||
| 4 | 4 | |
| 5 | 5 | ## Code to Edit |
| 6 | 6 | |
| 7 | -The **entire contents** of each file (the current file for Jetbrains inline Edit, the `Code to Edit` item for VS Code Edit mode) are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges. | |
| 8 | - | |
| 9 | -## Context Providers | |
| 10 | - | |
| 11 | -In VS Code Edit mode, you can use `@` to add context using [Context Providers](/customize/custom-providers), similar to [Chat](/features/chat/context-selection). Some context providers may be disabled in Edit mode. | |
| 7 | +The **entire contents** of the current file are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges. |
modified docs/features/edit/how-to-customize.mdx +2 −0
| @@ -6,4 +6,6 @@ | ||
| 6 | 6 | 2. Click the cube icon to expand the "Models" section |
| 7 | 7 | 3. Use the dropdowns to select models for Edit and Apply |
| 8 | 8 | |
| 9 | + | |
| 10 | + | |
| 9 | 11 | Learn more about the [Edit role](/customize/model-roles/edit) and [Apply role](/customize/model-roles/apply). |
modified docs/features/edit/quick-start.mdx +4 −15
| @@ -14,7 +14,7 @@ | ||
| 14 | 14 | |
| 15 | 15 | ## Highlight code and activate |
| 16 | 16 | |
| 17 | -Highlight the block of code you would like to modify and press `cmd/ctrl` + `i` to active Edit mode. You can also enter Edit mode by pressing `cmd/ctrl` + `i` with no code highlighted, which will default to editing the current file. | |
| 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 | 18 | |
| 19 | 19 | ## Describe code changes |
| 20 | 20 | |
| @@ -24,23 +24,12 @@ | ||
| 24 | 24 | |
| 25 | 25 | Proposed changes appear as inline diffs within your highlighted text. |
| 26 | 26 | |
| 27 | -You can navigate through each proposed change, accepting or rejecting them using `cmd/ctrl` + `opt` + `y` (to accept) or `cmd/ctrl` + `opt` + `n` (to reject). | |
| 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 | 28 | |
| 29 | -You can also accept or reject all changes at once using `cmd/ctrl` + `shift` + `enter` (to accept) or `cmd/ctrl` + `shift` + `delete/backspace` (to reject). | |
| 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 | 30 | |
| 31 | -If you want to request a new suggestion for the same highlighted code section, you can use `cmd/ctrl` + `i` to re-prompt the model. | |
| 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 | 32 | |
| 33 | -## VS Code | |
| 34 | - | |
| 35 | -In VS Code, Edit is implemented in the extension sidebar with a similar interface to [Chat](/features/chat/how-it-works), and you can also enter Edit mode by using the Mode Selector below the main Chat input to select `Edit`. | |
| 36 | - | |
| 37 | - | |
| 38 | - | |
| 39 | -You can also reject and accept diffs using the `Reject All` and `Accept All` buttons that show up in the Chat when diffs are present (see examples below). | |
| 40 | - | |
| 41 | -### Adding Code to Edit | |
| 42 | - | |
| 43 | -Along with adding highlighted code, you can also manually add files to edit using the `Add file` combobox or by clicking the dropdown and selecting `Add all open files` to add all files that are currently open in the editor. | |
| 44 | 33 | |
| 45 | 34 | ## Jetbrains |
| 46 | 35 |
modified docs/getting-started/overview.mdx +1 −1
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | <Tab title="Edit"> |
| 28 | 28 | [Edit](/features/edit/quick-start) is a convenient way to modify code without leaving your current file |
| 29 | 29 | |
| 30 | - | |
| 30 | + | |
| 31 | 31 | |
| 32 | 32 | <Info> |
| 33 | 33 | Learn more about [Edit](/features/edit/quick-start) |
added docs/images/edit-model.png +0 −0
Binary content is not shown. View the file.
modified docs/images/edit.gif +0 −0
Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.