/explain

Category: GitHub Copilot

/explain

Chat slash command: explain selected code

Type /explain in the Copilot Chat input to get a detailed explanation of your selected code. Copilot describes what the code does, identifies patterns used, and highlights any potential issues.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.