A VS Code extension that provides AI-powered explanations for code errors. Simply hover over any error in your code to get a detailed, human-friendly explanation of what went wrong and how to fix it.
- 🔍 Smart Error Detection: Automatically detects errors in your code
- 🤖 AI-Powered Explanations: Uses OpenAI's GPT models to provide clear, contextual explanations
- 💡 Solution Suggestions: Offers practical solutions and best practices
- 🎯 Multiple Ways to Access: Hover over errors or use the command palette
- 🌈 Beautiful UI: Clean, modern interface that matches VS Code's theme
- Open VS Code
- Go to the Extensions view (Ctrl+Shift+X / Cmd+Shift+X)
- Search for "ErrorExplainer"
- Click Install
Before using the extension, you need to set up your OpenAI API key:
- Get an API key from OpenAI
- Open VS Code Settings (Ctrl+, / Cmd+,)
- Search for "ErrorExplainer"
- Enter your OpenAI API key in the "OpenAI API Key" field
Simply hover over any error in your code to see an AI-generated explanation.
- Place your cursor on the line with the error
- Press
Ctrl+Shift+P(Windows/Linux) orCmd+Shift+P(Mac) - Type "Explain Error" and select the command
- What the error means in simple terms
- Why this error typically occurs
- How to fix it
- Best practices to avoid this error
The extension works with all programming languages supported by VS Code.
- VS Code 1.100.0 or higher
- OpenAI API key
- Internet connection for AI-powered explanations
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Include if your extension adds any VS Code settings through the contributes.configuration extension point.
For example:
This extension contributes the following settings:
myExtension.enable: Enable/disable this extension.myExtension.thing: Set toblahto do something.
Calling out known issues can help limit users opening duplicate issues against your extension.
Users appreciate release notes as you update your extension.
Initial release of ...
Fixed issue #.
Added features X, Y, and Z.
Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.
You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:
- Split the editor (
Cmd+\on macOS orCtrl+\on Windows and Linux). - Toggle preview (
Shift+Cmd+Von macOS orShift+Ctrl+Von Windows and Linux). - Press
Ctrl+Space(Windows, Linux, macOS) to see a list of Markdown snippets.
Enjoy!