-
When I select several lines of code, press In addition, there is also a "Custom Prompt" inline assistant. But it seems that it just opens a chat. How could I command it to replace the buffer? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
So the buffer selection, as per its description ("Send the current buffer to the LLM as part of an inline prompt") will send over all of the current buffer as context alongside your code selection and your code prompt: In the example above, I've selected some code in a mini.test file and asked the LLM to tell me what the selection does in the context of the whole buffer.
As per the Quickstart guide, "the assistant will evaluate the prompt and either write code or open a chat buffer...". So it depends entirely on your prompt: |
Beta Was this translation helpful? Give feedback.
-
Thank you for the gifs. Now I can reproduce your behavior. For some reason, the prompt window does not show up yesterday for the "Buffer selection". |
Beta Was this translation helpful? Give feedback.
So the buffer selection, as per its description ("Send the current buffer to the LLM as part of an inline prompt") will send over all of the current buffer as context alongside your code selection and your code prompt:
In the example above, I've selected some code in a mini.test file and asked the LLM to tell me what the selection does in the context of the whol…