docs: cmd + i to Edit update (#6660)
* docs: cmd + i update * Update docs/features/edit/quick-start.mdx Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com> --------- Co-authored-by: Patrick Erichsen <patrick.a.erichsen@gmail.com>
This commit is contained in:
parent
52e2f3c4e0
commit
791423b559
6 changed files with 8 additions and 21 deletions
|
|
@ -4,8 +4,4 @@ The input you provide is included in the prompt.
|
|||
|
||||
## Code to Edit
|
||||
|
||||
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.
|
||||
|
||||
## Context Providers
|
||||
|
||||
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.
|
||||
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.
|
||||
|
|
|
|||
|
|
@ -6,4 +6,6 @@ You can configure particular models from your Assistant to be used for Edit and
|
|||
2. Click the cube icon to expand the "Models" section
|
||||
3. Use the dropdowns to select models for Edit and Apply
|
||||
|
||||

|
||||
|
||||
Learn more about the [Edit role](/customize/model-roles/edit) and [Apply role](/customize/model-roles/apply).
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ Edit is recommended for small, targeted changes, such as
|
|||
|
||||
## Highlight code and activate
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## Describe code changes
|
||||
|
||||
|
|
@ -24,23 +24,12 @@ Describe the changes you would like the model to make to your highlighted code.
|
|||
|
||||
Proposed changes appear as inline diffs within your highlighted text.
|
||||
|
||||
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).
|
||||
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.
|
||||
|
||||
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).
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
## VS Code
|
||||
|
||||
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`.
|
||||
|
||||

|
||||
|
||||
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).
|
||||
|
||||
### Adding Code to Edit
|
||||
|
||||
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.
|
||||
|
||||
## Jetbrains
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ description: "To quickly understand what you can do with Continue, check out eac
|
|||
<Tab title="Edit">
|
||||
[Edit](/features/edit/quick-start) is a convenient way to modify code without leaving your current file
|
||||
|
||||

|
||||

|
||||
|
||||
<Info>
|
||||
Learn more about [Edit](/features/edit/quick-start)
|
||||
|
|
|
|||
BIN
docs/images/edit-model.png
Normal file
BIN
docs/images/edit-model.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 127 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 6 MiB After Width: | Height: | Size: 3.6 MiB |
Loading…
Add table
Reference in a new issue