Codinsight is a Visual Studio Code extension that helps developers understand code quickly and easily. It uses advanced language models to provide insightful explanations of selected code snippets, making it easier to comprehend complex or legacy code.
Features
Code Explanation: Select any piece of code and get a detailed explanation.
Syntax Highlighting: Explanations include syntax-highlighted code snippets for better readability.
Context-Aware Analysis: The extension considers the context of your code to provide more accurate explanations.
Support for Multiple Languages: Works with various programming languages supported by VS Code.
Installation
Open Visual Studio Code
Go to the Extensions view (Ctrl+Shift+X)
Search for "Codinsight"
Click Install
Usage
Select a piece of code in your editor
Right-click and choose "Explain Selected Code" from the context menu, or use the command palette (Ctrl+Shift+P) and type "Explain Selected Code"
A new panel will open with a detailed explanation of the selected code
Requirements
Visual Studio Code version 1.60.0 or higher
Extension Settings
This extension contributes the following settings:
codinsight.maxTokens: Maximum number of tokens to use for code explanation (default: 1000)
codinsight.language: Preferred language model for code explanation (default: "llama3-8b-8192")
Known Issues
Highly specialized or domain-specific code may receive generic explanations
License
This project is licensed under the MIT License - see the LICENSE.md file for details.