Hi there. Maybe this video can help with configuring a standard for commit messages. It has a link to a GIST that is useful.
Hello!
While there is a command to automatically generate commit messages, it only works within the source control panel. I frequently use the āCommit allā command shortcut to quickly create commits without switching between side panels.
However, when the commit dialog box opens, thereās no option to automatically generate a commit message. Iād like to have this auto-generate feature available in the commit dialog as well.
Iām running version 0.44.11 and building a codebase using dev containers. All of a sudden, the Aji generaqted commit message feature (the sparkle icon next to the commit message input) no longer works when in the dev container. but if I leave the container, it works again. So that means that I have to reopen the folder locally, stage the files, and then hit the sparkle icon and then commit. Then I reopen the container and start worjgain, where chat, composser, etc continue to work, but the soaqrkle icon doesnātā¦
Please help!
Hey, we should have some stability improvements for DevContainers coming in our next update very soon, which may resolve this issue!
need this feature!
Hey, this feature is already available in Cursor, but may have some issues if being using inside a DevContainer. We are hoping our next release may fix this!
I do the same thing. I tell the composer agent to look over @commit and make the commit in the terminal. Hereās my prompt that I use for Git changes.
ā
You will analyze the @Commit and perform the following tasks:
- Generate a detailed and easy-to-read git summary of the changes made in the diff.
- Write a commit message that follows these best practices:
- Use a clear, imperative subject line (e.g., āAdd featureā or āFix bugā).
- Keep the subject line concise (50 characters or less).
- Separate the subject from the body with a blank line.
- Use bullet points in the body for listing changes.
- Include a short āwhyā explanation to give context.
For example:
refactor: improve deployment configuration and type safety
- Configure Vercel to exclude unnecessary files:
- Add
excludeFiles
pattern invercel.json
.
- Add
- Update ESLint to skip test files:
- Add
ignorePatterns
to.eslintrc.json
.
- Add
- Enhance type safety:
- Replace
any
with type unions inuseCursorPagination
. - Add
NodeData
andRuleNode
interfaces.
- Replace
- Add JSDoc for key functions.
-
Use PowerShell commands to stage and commit the changes:
git add . ; git commit -m " refactor: improve deployment configuration and type safety- Configure Vercel deployment to exclude test files.
- Configure Vercel deployment to exclude test files.
-
Confirm the commit was successfully executed.
Keep it clean, clear, and to the point!