AstroBot is an advanced AI-powered assistant designed for Visual Studio Code to enhance coding efficiency and productivity. With AstroBot, users can access insights on code, explanations for complex topics, and auto-generate code snippets based on specific inputs.
Key Features
AstroBot Chat: An intuitive, updated interface for seamless interaction.
Shortcut Commands: Quick-access commands for code explanation, fixing, documentation generation, and test generation.
API Key Management: Easily set or remove your API key.
AI-Powered Commits: Use AI to automatically generate commit messages for your code changes.
System Requirements
Visual Studio Code version 1.75.0 or higher.
Installation Guide
Open Visual Studio Code.
Navigate to the Extensions view by selecting the Extensions icon in the Activity Bar or pressing Ctrl+Shift+X.
In the search bar, type "AstroBot".
Select the AstroBot extension and click "Install".
After installation, reload Visual Studio Code when prompted.
Usage
Setting Up the API Key: Press Ctrl+Shift+P to open the Command Palette. Select "AstroBot: Set API Key" to enter your OpenAI API key (ensuring a secure setup).
AstroBot Chat: Use the chat tool to quickly resolve programming queries directly within the coding environment.
Shortcut Commands: Highlight code and right-click to access shortcuts like "Explain", "Fix", "Docs", and "Test" for streamlined functionality in AstroBot Chat.
AI Commits: Use the "AI Commit" command under "AstroBot (Git)" to generate AI-driven commit messages, with options for Gitmoji and semantic versioning.
Configuration
Access the configuration settings by navigating to File > Preferences > Settings and searching for "AstroBot". Customizable settings include:
API Key: Configure your API key and AI provider (default: OpenAI).
Organization ID: Set your OpenAI organization ID (required for certain models).
Model: Choose the AI model for AstroBot.
Max Tokens: Define the maximum number of tokens per request.
Temperature: Adjust the model’s creativity level (range 0–1).
Git Moji: Enable Gitmoji for commits.
Semantic Versioning: Specify semantic versioning for your commits.