Q Commit

Generate commit messages using Amazon Q CLI for your staged changes.
Features
- 🎯 One-click commit message generation
- ✨ Integrates directly with VS Code's Source Control
- 🤖 Powered by Amazon Q CLI
- ⚡ Fast and lightweight
Requirements
Installation
Install from the VS Code Marketplace:
code --install-extension codeatlasdev.q-commit
Or search for "Q Commit" in the Extensions view (Ctrl+Shift+X).
Usage
- Stage your changes (
git add)
- Click the sparkle (✨) icon in the Source Control view
- Review the generated commit message
- Commit!
Development
Setup
npm install
Running the Extension
- Press
F5 to open a new VS Code window with the extension loaded
- Make changes to the code
- Press
Ctrl+R (or Cmd+R on macOS) in the extension development window to reload
Watch Mode
For continuous development with automatic rebuilds and type checking:
npm run watch
This runs both esbuild and TypeScript compiler in watch mode simultaneously.
Building
npm run build # Development build
npm run package # Production build with type checking
Type Checking
npm run check-types
Linting
npm run lint
Tech Stack
- TypeScript
- esbuild (fast bundling)
- VS Code Extension API
- npm-run-all (parallel watch tasks)
Project Structure
.
├── src/
│ ├── extension.ts # Main extension entry point
│ ├── prompts.ts # Q CLI prompts
│ └── utils.ts # Helper functions
├── dist/ # Compiled output
├── .vscode/ # VS Code configuration
│ ├── launch.json # Debug configuration
│ ├── tasks.json # Build tasks
│ └── settings.json # Workspace settings
└── esbuild.js # Build configuration
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
MIT © CodeAtlas
| |