Elffuss BraidHub

kikocis/continue public

main · 1.3 KiBRawPermalink
1---
2title: "How Edit Works"
3description: "Using the highlighted code, the contents of the current file containing your highlight, and your input instructions, we prompt the model to edit the code according to your instructions. No other additional context is provided to the model."
4---
5
6## How Edit Functionality Works
7
8When you start an edit session, Continue:
9
101. **Gathers Context**: Uses the highlighted code and the current file contents
112. **Prompts the Model**: Sends the gathered context and your input instructions to the model
123. **Applies Changes**: The model response is then streamed directly back to the highlighted range in your code, where we apply a diff formatting to show the proposed changes.
13
14If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes.
15
16<Info>
17**Looking for AI that predicts your next edit?** Check out [Next Edit](/features/autocomplete/next-edit), an experimental feature that proactively suggests code changes before you even start typing, going beyond traditional autocomplete to anticipate entire code modifications.
18</Info>
19
20If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](/troubleshooting#check-the-logs).