🔥 3-day streak
GitHub Copilot169 / 190
Question 169 of 190

A developer is writing a Copilot Chat prompt to generate a REST controller. They include a detailed persona and coding-style instructions ('Act as a senior backend engineer who writes idiomatic, well-documented Spring Boot code with constructor injection') but place these instructions in a comment at the very bottom of a long prompt that begins with a large pasted code snippet. The generated output ignores most of the style guidance. Applying prompt-engineering best practices, what is the most effective adjustment?

Reviewed for accuracy · Report an issueNext question