Code ExplainerThis is a VS Code extension that explains every bit of code inside your editor. It uses the Gemini API to generate explanations for code.Adapted from (https://github.com/Sadeedpv/codeExplainer/blob/main/assets/code-explainer-logo.png?raw=true). Many thanks to @Sadeedpv. Code repository (https://github.com/xzhaos/VSCodeExplainer) InstallationTo install the extension, open VS Code and go to the Extensions tab. Search for Code Explainer and click Install. Alternatively, You can install it from here WHY YOU SHOULD USE IT?
HOW TO USE!?Once the extension is installed, you can select the code you want to get explaination and then righ click and select Alternatively, you can also open For code generation, you can select the comment which includes the instruction you want the code to do and then right click to get context menu and select Explain CodeGenerate CodeConfigurationBut before that, you have to configure your Gemini API key. Go to your VSCode settings(Ctrl + ,) and search for code-explainer and set your IMPORTANT !!!
Here is an example of how the extension can be used:
|