Supplying context to Copilot: comments vs few-shot examples vs selection
This sheet compares Inline comment, Few-shot example, Code selection.
| Criterion | Inline comment | Few-shot example | Code selection |
|---|---|---|---|
| What it is | Natural-language comment above a stub describing intent | An example implementation supplied in the prompt | Highlighted code sent to Chat |
The verdict, the full comparison, 3 rules and 3 traps are part of GH-300 access. Unlock GH-300.