Stage 2 · Lesson 6 of 6
Pointing the tool at the right files
You get faster, more accurate answers when you name exactly what the tool should read rather than describing where code lives. In Claude Code, type @ and a path to reference a file, and start a line with ! to run a command whose output joins the conversation.
In , @ attaches files, folders, @Terminals output or @Branch, your 's with main, and Cmd+Shift+L or Ctrl+Shift+L adds selected code to chat. In Copilot chat, # adds context such as #file or #selection, and @terminal asks about the terminal.
Point at the file to change, a file showing the pattern to follow, and the error you are fixing. If you do not know which files matter, let the tool search.
Common trapattaching the whole to be safe, which buries the file that matters.
A question to check yourself, an AI practice session and 1 cheat sheet entry come when you add the roadmap to your account. Add it
Resources for this stage
Start with
- GuideFreeCursor Documentation
Anysphere
Work through the quickstart, then the Rules and Ignore file pages