# Keep related code in open tabs

Category: GitHub Copilot

# Keep related code in open tabs

Open relevant files to give Copilot more context

Copilot uses your open editor tabs as context windows, not just the current file. If you want it to match an existing pattern (e.g., how you format API responses), open a file that shows that pattern before asking for suggestions.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.