When crafting prompts for GitHub Copilot, what is a recommended strategy to enhance the relevance of the generated code?
Keep the prompt as short as possible, using single words or brief phrases.
Write the prompt in natural language without any programming language.
Avoid mentioning the programming language to allow for more flexible suggestions.
Provide examples of expected input and output within the prompt.
“To get the best results from GitHub Copilot, provide clear prompts and, when possible, include examples of expected input and output.”
This establishes that including examples is a recommended prompt engineering strategy.
Submit