Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>AI Commit AssistantNew to Visual Studio Code? Get it now.
AI Commit Assistant

AI Commit Assistant

sarach

| (0) | Free
Generate smart git commit messages using Gemini AI
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🤖 AI Commit Assistant

Generate professional git commit messages instantly using Google Gemini AI - right inside VS Code!

✨ Features

  • 🎯 AI-Powered: Analyzes your code changes and generates 3 commit message suggestions
  • 📝 Conventional Commits: Follows industry standards (feat:, fix:, refactor:, etc.)
  • ⚡ One Click: Click the sparkle icon in Source Control to generate messages
  • 🔒 Secure: API key stored securely in VS Code settings
  • 🌐 Smart: Handles multiple files and understands context

🚀 Quick Start

1. Install the Extension

Search for "AI Commit Assistant" in VS Code Extensions

2. Get Your API Key

  1. Visit Google AI Studio
  2. Click "Create API Key"
  3. Copy your key

3. Configure the Extension

Option A: When prompted

  • The extension will ask for your API key on first use

Option B: Manually

  1. Press Ctrl+Shift+P (or Cmd+Shift+P on Mac)
  2. Type: AI Commit: Set API Key
  3. Paste your key

Option C: Settings

  1. Open Settings (Ctrl+,)
  2. Search for aiCommit.apiKey
  3. Paste your key

📖 Usage

Method 1: Source Control Icon (Recommended)

  1. Stage your changes (git add)
  2. Click the ✨ sparkle icon in the Source Control panel
  3. Choose from 3 AI-generated messages
  4. Done! ✅

Method 2: Command Palette

  1. Stage your changes
  2. Press Ctrl+Shift+P
  3. Type: AI Commit: Generate Message
  4. Select your preferred message

🎯 Example

# You make changes to multiple files
# Stage them
git add .

# Click the sparkle icon ✨
# AI generates:

1. feat: add user authentication with JWT tokens
2. feat: implement login and signup endpoints  
3. refactor: add auth middleware for protected routes

# Choose option 1 → Committed! 🎉

⚙️ Extension Settings

This extension contributes the following settings:

  • aiCommit.apiKey: Your Gemini API key (stored securely)

🔐 Privacy & Security

  • Your API key is stored locally in VS Code settings
  • Code diffs are sent only to Google's Gemini API
  • No data is stored or logged by this extension
  • You can remove your API key anytime in settings

🛠️ Commands

Command Description
AI Commit: Generate Message Generate commit messages for staged changes
AI Commit: Set API Key Configure your Gemini API key

💡 Tips

  • Stage only related changes for better commit messages
  • The AI analyzes up to 3000 characters of your diff
  • Messages are automatically limited to 72 characters
  • You can always write a custom message if needed

🐛 Known Issues

  • Requires internet connection for AI generation
  • Works only with Git repositories
  • Changes must be staged before generating messages

📝 Release Notes

1.0.0

  • Initial release
  • AI-powered commit message generation
  • Support for conventional commits
  • Interactive message selection
  • Secure API key management

🤝 Contributing

Found a bug? Have a feature request?

Open an issue on GitHub

📄 License

MIT


Enjoy! ⭐ If you like this extension, please rate it on the marketplace!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft