AI Commit Message
Learn how to generate contextual Git commit messages automatically using Cursor’s sparkle icon or shortcuts
Cursor generates commit messages from staged changes.
- Stage files to commit
- Open the Git tab in the sidebar
- Click the sparkle (✨) icon next to the commit message input
Generated messages use staged changes and repository git history. If you use conventions like Conventional Commits, messages follow the same pattern.
Add shortcut
To bind to a keyboard shortcut:
- Go to Keyboard Shortcuts (Ctrl+R+Ctrl+S or Ctrl+Shift+P and search “Open Keyboard Shortcuts (JSON)”)
- Add this binding for Ctrl+M:
- Save
You cannot customize commit message generation. Cursor adapts to your existing commit style.