| 1 | --- |
| 2 | title: "Chat Mode Context Selection" |
| 3 | sidebarTitle: "Context Selection" |
| 4 | description: "Learn how Continue selects relevant context for your chat requests, including text input, highlighted code, active files." |
| 5 | --- |
| 6 | |
| 7 | ## How to Use Text Input |
| 8 | |
| 9 | Typing a question or instructions into the input box is the only required context. |
| 10 | |
| 11 | ## How to Include Highlighted Code |
| 12 | |
| 13 | The highlighted code you've selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt. |
| 14 | |
| 15 | ## How to Include the Active File |
| 16 | |
| 17 | You can include the currently open file as context by pressing opt/alt + enter when you send your request. |
| 18 | |
| 19 | ## How to Include a Specific File |
| 20 | |
| 21 | You can include a specific file in your current workspace by typing '@Files' and selecting the file. |
| 22 | |
| 23 | ## How to Include a Specific Folder |
| 24 | |
| 25 | You can include a folder in your current workspace by typing '@Folder' and selecting the directory. |
| 26 | |
| 27 | ## How to Use Codebase Search |
| 28 | |
| 29 | You can automatically include relevant files from your codebase by typing '@Codebase'. |
| 30 | |
| 31 | ## How to Include Documentation Sites |
| 32 | |
| 33 | You can include a documentation site as context by typing '@Docs' and selecting the site. |
| 34 | |
| 35 | ## How to Include Terminal Contents |
| 36 | |
| 37 | You can include the contents of the terminal in your IDE by typing '@Terminal'. |
| 38 | |
| 39 | ## How to Include Git Diff |
| 40 | |
| 41 | You can include all of the changes you've made to your current branch by typing '@Git Diff'. |
| 42 | |
| 43 | ## How to Use Other Context Providers |
| 44 | |
| 45 | You can see a full list of built-in context providers [here](/customize/custom-providers) and learn about how to create your own context provider [here](/guides/build-your-own-context-provider). |