#selection tells Copilot Chat to focus on whatever text you currently have selected in the editor. Equivalent to having selected code when you open Chat, but useful when adding context mid-conversation.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.