Ways to add context
Context types
@file
Reference code files in your project. Supports querying and modification.How to add
- Type
@fileand enter the file name to search - Drag files from the file explorer to the chat box
Rule files (such as files in the.qoder/rulesdirectory) can also be found via@filesearch.
@folder
Reference entire directories. Useful when you need to understand or modify a group of related files.How to add
Type@folder and enter the directory name to search
@attachments
Reference local files or images to let AI analyze document content, generate code from designs, or process spreadsheet data.Supported file types
How to add
- Type
@attachmentsto select local files - Drag or paste files directly to the chat box
- Images are displayed separately at the top of the input box with preview support
@rule
Reference project rules to make AI follow specific coding styles, framework conventions, or business standards. Rules are embedded in every model call as persistent, reusable context. They’re ideal for defining coding styles, naming conventions, and framework usage patterns that need to stay consistent across your entire project.How to add
- Type
@ruleto select configured rules - When the rule list is empty, create new rules directly via the quick entry without going to the settings page
Rule files (such as.mdfiles in the.qoder/rulesdirectory) can be referenced as@rule(persistent context) or found via@filesearch (regular file).
Add to Chat
Files (including code files and Spec files) support fine-grained selection for adding context. You can select any content snippet in a file and add it to the current conversation by:- Clicking Add to Chat in the floating menu
- Using the shortcut
Command+L(macOS) /Ctrl+L(Windows/Linux)
Best practices
Combine context types
Combine different context types in one prompt:Leverage recommendations
After typing@, Qoder displays commonly used files at the top of the list:
- Current file: The file you’re editing
- Recently opened: The 2 most recently accessed files
Use instant search
After typing@ and continuing to type, Qoder searches matching files, folders, and rules in real time with highlighted matching characters.