Can "Generate Commit Message" Support Custom Rules?

Feature request for product/service

Cursor IDE

Describe the request

We’d like to add custom rules or a fixed format to Generate Commit Message, for example:

  • Use Chinese only for the message

  • Limit the message length

  • Other similar constraints

We’d really like to see support for these options, because generating a commit message with a single click is very convenient and we don’t have to open the chat and paste a lot of context there.

Hey there!

You can use a .cursorrules file to define rules that will apply to your commit messages. The AI-generated commit message feature (the sparkle button in the SCM input box) does not include user-defined rules unless they are defined in a .cursorrules file.

Other rules don’t currently affect the commit message, and we have a bug filed for that!