Skip to main content
Add context to AI conversations to help AI understand your needs and generate code that follows your project standards. You can add code files, project folders, local attachments, and project rules.

Ways to add context

Context types

@file

Reference code files in your project. Supports querying and modification.

How to add

  • Type @file and enter the file name to search
  • Drag files from the file explorer to the chat box
Rule files (such as files in the .qoder/rules directory) can also be found via @file search.

@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 @attachments to 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 @rule to 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 .md files in the .qoder/rules directory) can be referenced as @rule (persistent context) or found via @file search (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)
The selected content will be attached as context to the input box, helping the agent understand your intent more precisely. You can also add content from the conversation flow into the current chat — select a reply or reference a segment in the conversation flow and use Add to Chat to attach it to the input box, making it easy to build on earlier context in the same conversation and cut down on retyping.

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
Click recommended files to add them quickly without searching. After typing @ and continuing to type, Qoder searches matching files, folders, and rules in real time with highlighted matching characters.