🔥 3-day streak
GitHub Copilot170 / 190
Question 170 of 190

A developer is writing a new function and wants Copilot Chat to generate code that conforms to an unusual data structure defined elsewhere in the codebase. The struct definition lives in a separate file that is not currently open, and the developer notices Copilot keeps assuming a generic shape for the data. Without opening additional files or changing IDE settings, what is the most effective way to steer Copilot toward the correct structure in a single chat prompt?

Reviewed for accuracy · Report an issueNext question