跳到主要内容

AI Code Editor Usage Tips

1. GitHub Copilot 自动生成 git commit message

2. cursor 生成 git commit message

使用 @Commit cursor 会自动将 diff 添加到聊天中。

@Commit (Diff of Working State)  You are an expert software engineer.
Review the provided context and diffs which are about to be committed to a git repo.
Review the diffs carefully.
Generate a commit message for those changes.
The commit message MUST use the imperative tense.
The commit message should be structured as follows: <type>: <description>
Use these for <type>: fix, feat, build, chore, ci, docs, style, refactor, perf, test
Reply with JUST the commit message, without quotes, comments, questions, etc!