docs/ide-extensions/chat/context-selection.mdx
Typing a question or instructions into the input box is the only required context.
The highlighted code you've selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt.
You can include the currently open file as context by pressing opt/alt + enter when you send your request.
You can include a specific file in your current workspace by typing '@Files' and selecting the file.
For better codebase awareness, see our guide on making agent mode aware of codebases and documentation.
For better documentation awareness, see our guide on making agent mode aware of codebases and documentation.
You can include the contents of the terminal in your IDE by typing '@Terminal'.
You can include all of the changes you've made to your current branch by typing '@Git Diff'.
You can see a full list of built-in context providers here.