1. Select the code you want explained
2. Right-click and click "Explain selected code"
In a new tab, an explanation for the code you selected will be generated. Follow-up questions and their answers will also appear so that you can learn more about the selected code.
Link: https://marketplace.visualstudio.com/...