AutoCommiter
AutoCommiter is a Visual Studio Code extension that generates a smart, conventional commit message based on your staged git changes—covering all major developer work types—and lets you insert it, copy it, or choose your action with one key press!
Features
- Smart commit message: Auto-detects commit types (feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert, etc.) according to the Conventional Commits standard.
- Multiple types: If your changes match more than one type, all will be included.
- Changed files summary: Shows up to three changed files in the message for easy context.
- One-key shortcut: Generate, insert, and copy the message with Ctrl+Alt+P.
- Quick Action Picker: Press Ctrl+Shift+Alt+P to choose if you want to insert at cursor or just copy to clipboard.
- Direct Copy: Press Ctrl+Shift+Alt+C to copy the commit message to clipboard instantly.
- Notification with action: After auto-inserting and copying, you can click to show the quick action picker.
- Works anywhere: Insert the message in any file or editor in VS Code.
Quick Start
Install the extension
- Download and open this folder in VS Code, then press
F5 to launch the Extension Development Host.
- (Or install from VSIX if available.)
Stage your changes
- Use
git add or the Source Control pane to stage files.
Open any file
- Place your cursor where you want the commit message to appear.
Use the keybindings or palette commands:
- Ctrl+Alt+P — Insert the commit message at your cursor and copy it to clipboard.
- Ctrl+Shift+Alt+C — Copy the commit message to clipboard only.
- Ctrl+Shift+Alt+P — Show a picker to choose insert/copy.
- Or run any command from the Command Palette (
Ctrl+Shift+P ) and search "AutoCommiter"!
Commit Types Detected
feat – Feature implementations and enhancements
fix – Bug fixes
docs – Documentation changes (including comments)
style – Formatting, whitespace, linter, etc.
refactor – Code structure changes that don’t alter behavior
perf – Performance improvements
test – Adding or updating tests
build – Build tools, dependencies, package files
ci – Continuous integration, workflow changes
chore – Maintenance, configuration, minor housekeeping
revert – Reverts previous commits
update – Fallback for generic changes
Example
Suppose you staged changes in:
src/app.js (feature)
test/app.test.js (test)
README.md (docs)
You press Ctrl+Alt+P.
The extension inserts and copies:
feat, test, docs: src/app.js, test/app.test.js, README.md
Keyboard Shortcuts
- Ctrl+Alt+P — Insert at cursor and copy to clipboard.
- Ctrl+Shift+Alt+C — Copy to clipboard only.
- Ctrl+Shift+Alt+P — Pick an action (insert or copy).
- Or use the Command Palette (
Ctrl+Shift+P ) and search for "AutoCommiter".
Requirements
- You must be working inside a Git repository.
- You must have Git installed and in your system path.
- Works on Windows, Mac, and Linux.
Troubleshooting
- If nothing happens when you use the shortcut, make sure:
- The extension is enabled in VS Code.
- You are inside a Git repository.
- You have staged changes.
- The current file is open and focused.
- Check the “Output” panel (select “Extension Host”) for any errors.
About
AutoCommiter was created to help all types of developers (frontend, backend, docs, CI, test, infra, etc.) generate clear, standardized commit messages with zero friction.
Happy coding! 🚀
| |