Code Docs AI is a Visual Studio Code extension that leverages the power of GPT-4 to generate code comments for your Python code. It helps you understand your code better by providing insightful and contextually accurate comments.
-
Automatic Comment Generation: Simply highlight the code block you want comments for, right-click and select 'Generate Comment with Code Docs AI'. Code Docs AI will analyze your code and generate a comment that helps explaining what the code does.
-
GPT-4 Powered: Code Docs AI uses the GPT-4 model from OpenAI, which is known for its ability to understand context and generate human-like text. This ensures that the comments generated are accurate and helpful.
-
Python Support: Currently, Code Docs AI supports Python code. We are working on adding support for more languages.
- Open Visual Studio Code
- Go to Extensions
- Search for 'Code Docs AI'
- Click on 'Install'
- Open the Code Docs AI settings, either by (1) clicking the wheel symbol next to the 'Uninstall' button, or (2) opening the Visual Studio Code settings and going to the 'Code Docs AI' section under 'Extension'.
- Enter your OpenAI API key applicable for GPT-4. This key will be stored on your local machine only.
- Open a Python file in Visual Studio Code
- Highlight the code block you want comments for
- Right-click and select 'Generate Comments with Code Docs AI'
- The comments will be generated and added above the code block
We welcome contributions! Please see our contributing guidelines for more details.
Code Docs AI is licensed under the MIT License.