Elffuss BraidHub

kikocis/continue public

35c0ed0a3308 · 2.7 KiBRawPermalink
1---
2title: "Quick Start"
3---
4
5## How to use it[​](#how-to-use-it "Direct link to How to use it")
6
7Edit 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
9Edit 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[​](#highlight-code-and-activate "Direct link to Highlight code and activate")
16
17Highlight 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.
18
19## Describe code changes[​](#describe-code-changes "Direct link to Describe code changes")
20
21Describe 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[​](#accept-or-reject-changes "Direct link to Accept or reject changes")
24
25Proposed changes appear as inline diffs within your highlighted text.
26
27You can navigate through each proposed change, accepting or rejecting them using `cmd/ctrl` + `opt` + `y` (to accept) or `cmd/ctrl` + `opt` + `n` (to reject).
28
29You can also accept or reject all changes at once using `cmd/ctrl` + `shift` + `enter` (to accept) or `cmd/ctrl` + `shift` + `delete/backspace` (to reject).
30
31If you want to request a new suggestion for the same highlighted code section, you can use `cmd/ctrl` + `i` to re-prompt the model.
32
33## VS Code[​](#vs-code "Direct link to VS Code")
34
35In 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![edit mode selected](/images/features/edit/images/select-edit-mode-75c8f01861ebe03177986a5b7f21f746.png)
38
39You 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[​](#adding-code-to-edit "Direct link to Adding Code to Edit")
42
43Along 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
45## Jetbrains[​](#jetbrains "Direct link to Jetbrains")
46
47In Jetbrains, Edit is implemented as an inline popup. See the header GIF example.