Supplying context to Copilot: comments vs few-shot examples vs selection

This sheet compares Inline comment, Few-shot example, Code selection.

CriterionInline commentFew-shot exampleCode selection
What it isNatural-language comment above a stub describing intentAn example implementation supplied in the promptHighlighted code sent to Chat

The verdict, the full comparison, 3 rules and 3 traps are part of GH-300 access. Unlock GH-300.