AI Buddy is a Visual Studio Code extension that leverages AI to enhance your coding and Git workflow. It provides smart, context-aware suggestions for improving selected code, generating and refining Git commit messages, and answering questions about your code.
Features
Modify Git Commit Message: Use the command AI Buddy: Modify the Git Commit Message to get AI-powered suggestions and edits for your commit messages.
Improve Selected Code: Select a block of code in your editor and use AI Buddy: Improve Selected Code from the Command Palette or right-click context menu to get AI-powered suggestions for refactoring or optimizing it.
Ask a Question About Selected Code: Select a block of code and use AI Buddy: Ask a Question About Selected Code from the Command Palette or right-click context menu to ask AI a question specifically about that code.
Settings: Access AI Buddy settings via AI Buddy: Settings to configure your AI models and preferences.
Usage
Commands
Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P on macOS).
Type and select one of the following commands:
AI Buddy: Settings: To open the extension settings.
AI Buddy: Modify the Git Commit Message: To get AI-powered suggestions for your commit message.
AI Buddy: Improve Selected Code: To get AI-powered suggestions for refactoring or optimizing selected code.
AI Buddy: Ask a Question About Selected Code: To ask AI a question about selected code.
Editor Context Menu
When you have text selected in the editor, right-click to access these options:
AI Buddy: Improve Selected Code: Improve the selected code with AI suggestions.
AI Buddy: Ask a Question About Selected Code: Ask a question about the selected code using AI.
Commands
Command
Description
ai-buddy.settings
Open AI Buddy extension settings
ai-buddy.commit
Modify the Git commit message using AI assistance
ai-buddy.rewrite-selection
Improve selected code using AI assistance
ai-buddy.ask-selection
Ask a question about selected code using AI assistance
Installation
You can install AI Buddy directly from the Visual Studio Code Marketplace:
Open VS Code.
Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X).