Show Copilot an example to generate better implementations
Write a comment like `// input: [3,1,2] -> output: [1,2,3]` before a sorting function. Copilot uses examples as specification — especially useful for data transformation functions where the logic isn't obvious from the name alone.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.