Pin files to Cursor chat with @ before asking
@-mention 2-3 representative files before your question — Cursor's retrieval is good but explicit is better for refactors.
- Type: Prompt
- Tags: Coding Agent Hacks, Intermediate, Cursor
- Updated: 2026-10-01
Prompt
@-mention 2-3 representative files before your question — Cursor's retrieval is good but explicit is better for refactors. For one-off questions, Cursor's auto-context is fine. For multi-file refactors, it under-pulls. Type `@` and pin the entry point, the type definitions, and one usage site. Hit rate on cross-file edits goes way up. Implementation example: @src/auth/session.ts @src/auth/types.ts @app/api/me/route.ts Refactor session reading to use the new SessionContext type. Update all three files. Keep the existing cookie shape.
More prompts
- Expense Report Automation System — Save More Time
- Meeting Scheduling Link Standardization — Save More Time
- Invoice Generation and Delivery Automation — Save More Time
- Document Template Automation Library — Save More Time
- Calendar Management Automation Rules — Save More Time
- File Organization and Naming System — Save More Time
- Recurring Payment Automation Setup — Save More Time
- Data Entry Elimination Framework — Save More Time