#file

Category: GitHub Copilot

#file

Chat variable: reference a specific file in Chat

Type #file in Chat to attach a specific file as context. Copilot will prompt you to pick a file from your workspace. Use this to ask 'refactor #file to use async/await' when the file isn't currently open.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.