Files

Reference entire files in Chat and Inline Edit by selecting @Files & Folders followed by the filename to search. You can also drag files from the sidebar directly into Agent to add as context.

Folders

When referencing folders using @Folders, Cursor provides the folder path and overview of its contents to help the AI understand what’s available.

After selecting a folder, type / to navigate deeper and see all subfolders.

Full folder content

Enable Full Folder Content in settings. When enabled, Cursor attempts to include all files from the folder in the context.

For large folders exceeding the context window, an outline view appears with a tooltip showing how many files were included while Cursor manages the available context space.

Using full folder content with Max mode enabled significantly increases request costs as more input tokens are consumed.

Context management

Large files and folders are automatically condensed to fit within context limits. See file & folder condensation for details.