JG Extension seamlessly integrates AI-powered assistance into your VS Code workflow. Leverage natural language chat to get real-time help with code, generate professional Git commit messages based on file changes, and manage your project details—all from within your editor. With a sleek, user-friend
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
JG Extension is an AI-powered Visual Studio Code extension designed to boost your productivity. Seamlessly integrated into your VS Code workflow, it provides real-time coding assistance, generates professional Git commit messages based on file changes, and helps manage your project details—all from within your editor.
Features
Natural Language Chat:
Ask questions and get real-time code assistance via an interactive chat interface.
AI-Powered Git Commit Messages:
Automatically generate detailed, professional Git commit messages based on your file changes.
Project Insights:
Manage and review your project details directly from within VS Code.
Model Management:
Easily switch between AI models or download the necessary model support with a simple click.
User-Friendly Interface:
Enjoy a sleek and intuitive design that integrates seamlessly into your workflow.
Requirements
Visual Studio Code: Version 1.96.0 or later.
Ollama: The extension integrates with Ollama for AI assistance. Ensure it is installed and running on your system.
Git: For tracking file changes and generating commit messages.
Installation
Via VSIX (Downloadable)
Download the latest .vsix package from the Releases page.
In VS Code, open the Extensions view (Ctrl+Shift+X or Cmd+Shift+X on macOS).
Click on the ellipsis (...) at the top right and select Install from VSIX....
Navigate to and select the downloaded .vsix file.
Reload VS Code to activate the extension.
Via the VS Code Marketplace
Open VS Code and navigate to the Extensions view.
Search for JG Extension – Your Intelligent Coding Companion.
Click Install.
Reload VS Code if prompted.
Usage
Opening the JG Chat Panel
Via Status Bar:
Click the JG Sidebar icon in the status bar.
Via Command Palette:
Press Ctrl+Shift+P (or Cmd+Shift+P on macOS), then type and select JG Extension: Open JG Chat Panel.
Chatting with the Extension
Type your query into the chat input box.
Press Enter (or click Send) to submit your message.
For special commands, try:
/check to generate a Git commit message based on file changes.
/reset to clear the conversation history.
/clear to clear the chat window.
Switching AI Models
Use the dropdown at the top of the chat panel to select a different model.
If no models are available, click the Download Ollama button to install the necessary components.
Commands
jgext.start: Opens the JG Chat Panel.
jgext.openSidebar: Opens the sidebar containing the JG Chat view.
Troubleshooting
Webview Not Loading:
Ensure that you have a workspace folder open in VS Code. The extension requires a valid workspace for operations like file scanning and Git integration.
Ollama Issues:
Confirm that Ollama is installed and running correctly on your machine. Check the extension’s output channel for error logs.
Reload Required:
If the extension does not work immediately after installation, try reloading the VS Code window (Ctrl+Shift+P > Reload Window).
Contributing
Contributions are welcome! If you have suggestions, bug fixes, or improvements, please open an issue or submit a pull request on the GitHub repository.