diff --git a/docs/features/edit/context-selection.mdx b/docs/features/edit/context-selection.mdx index a7c3459c9..0cbff11c5 100644 --- a/docs/features/edit/context-selection.mdx +++ b/docs/features/edit/context-selection.mdx @@ -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. diff --git a/docs/features/edit/how-to-customize.mdx b/docs/features/edit/how-to-customize.mdx index 1375d7b9d..74f06a549 100644 --- a/docs/features/edit/how-to-customize.mdx +++ b/docs/features/edit/how-to-customize.mdx @@ -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 +![Edit model selection](/images/edit-model.png) + Learn more about the [Edit role](/customize/model-roles/edit) and [Apply role](/customize/model-roles/apply). diff --git a/docs/features/edit/quick-start.mdx b/docs/features/edit/quick-start.mdx index 087ac5e15..aa2d9b5d4 100644 --- a/docs/features/edit/quick-start.mdx +++ b/docs/features/edit/quick-start.mdx @@ -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`. - -![edit mode selected](/images/features/edit/images/select-edit-mode-75c8f01861ebe03177986a5b7f21f746.png) - -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 diff --git a/docs/getting-started/overview.mdx b/docs/getting-started/overview.mdx index b0de6d490..d3b6b3269 100644 --- a/docs/getting-started/overview.mdx +++ b/docs/getting-started/overview.mdx @@ -27,7 +27,7 @@ description: "To quickly understand what you can do with Continue, check out eac [Edit](/features/edit/quick-start) is a convenient way to modify code without leaving your current file -![edit](/images/edit-d522442f88e715924b4c9f4c83900e3a.gif) +![edit](/images/edit.gif) Learn more about [Edit](/features/edit/quick-start) diff --git a/docs/images/edit-model.png b/docs/images/edit-model.png new file mode 100644 index 000000000..f68864956 Binary files /dev/null and b/docs/images/edit-model.png differ diff --git a/docs/images/edit.gif b/docs/images/edit.gif index a1629930c..7f7cd0b15 100644 Binary files a/docs/images/edit.gif and b/docs/images/edit.gif differ