Elffuss BraidHub

kikocis/continue public

main · 2.4 KiBRawPermalink
1---
2title: "Chat"
3sidebarTitle: "How To Use AI Chat"
4icon: "circle-question"
5description: "Learn how to use Continue's AI chat agent to solve coding problems without leaving your IDE, including code context sharing, applying generated solutions, and switching between models"
6---
7
8<Frame>
9 <img src="/images/chat-489b68d156be2aafe09ee7cedf233fba.gif" />
10</Frame>
11
12## How to Use AI Chat in Continue for Coding Help
13
14Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you what you want, then you can send follow up messages to clarify and adjust its approach until the task is completed.
15
16Chat is best used to understand and iterate on code or as a replacement for search engine queries.
17
18## Send a Coding Question or Task to AI Chat
19
20To send a question, add it to the input box in the extention and press enter. You send it a question, and it replies with an answer. You tell it to solve a problem, and it provides you a solution. You ask for some code, and it generates it.
21
22## Add Code Context to AI Chat by Highlighting Code
23
24You select a code section with your mouse, press `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) to send it to the LLM, and then ask for it to be explained to you or request it to be refactored in some way.
25
26## Use @ to Include Project Context in AI Chat Responses
27
28If there is information from the codebase, documentation, IDE, or other tools that you want to include as context, you can type @ to select and include it as context. You can learn more about how to use this in [Chat context selection](/features/chat/quick-start#how-to-use-%40-for-additional-context).
29
30## Insert AI-Generated Code Changes Directly into Your File
31
32When the LLM replies with edits to a file, you can click the “Apply” button. This will update the existing code in the editor to reflect the suggested changes.
33
34## How to Begin a New AI Chat Session for a Different Coding Task
35
36Once you complete a task and want to start a new one, press `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) to begin a new session, ensuring only relevant context for the next task is provided to the LLM.
37
38## Change AI Models in Continue Chat for Different Coding Needs
39
40If you have configured multiple models, you can switch between models using the dropdown or by pressing `cmd/ctrl` + `’`