Reference a file inline inside the interactive UI.
Section: Context-rich prompting inside a session
Inject a file into the prompt context
text
text
@ README.mdExplanation
Type `@` followed by a file name to include that file's contents in the current prompt context.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Context-rich prompting inside a session
Run a shell command without leaving Copilot
Execute a local shell command directly from the session.
Edit the prompt in an external editor
Open the current prompt in your configured editor.
Summarize a file from the command line
Run Copilot non-interactively with a prompt.