| 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 | ## Codebase Search |
| 24 | |
| 25 | For better codebase awareness, see our [guide on making agents aware of codebases and documentation](/guides/codebase-documentation-awareness). |
| 26 | |
| 27 | ## How to Include Documentation Sites |
| 28 | |
| 29 | For better documentation awareness, see our [guide on making agents aware of codebases and documentation](/guides/codebase-documentation-awareness). |
| 30 | |
| 31 | ## How to Include Terminal Contents |
| 32 | |
| 33 | You can include the contents of the terminal in your IDE by typing '@Terminal'. |
| 34 | |
| 35 | ## How to Include Git Diff |
| 36 | |
| 37 | You can include all of the changes you've made to your current branch by typing '@Git Diff'. |
| 38 | |
| 39 | ## How to Use Other Context Providers |
| 40 | |
| 41 | You can see a full list of built-in context providers [here](/customize/deep-dives/custom-providers). |