Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Commit No HelperNew to Visual Studio Code? Get it now.
Commit No Helper

Commit No Helper

luotingwu

|
1 install
| (0) | Free
Automatically prepend issue ID to commit messages based on branch
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Commit No Helper

VS Code 插件,用于在提交代码时自动填充 Issue 编号。

功能

  1. 自动填充 Issue ID:根据当前分支关联的 Issue ID,自动在 Commit Message 前加上 #{IssueID}# 前缀。
  2. 创建分支并关联:提供命令 Create Branch with Issue ID,在创建分支时直接输入 Issue ID。
  3. 手动关联:提供命令 Set Issue ID for Current Branch,为当前已有分支设置 Issue ID。
  4. 智能更新:
    • 切换分支时,自动更新前缀。
    • 手动修改 Commit Message 时,不会强制覆盖(除非切换分支)。

使用方法

1. 创建新分支

按 Ctrl+Shift+P (macOS: Cmd+Shif t+P),输入 Create Branch with Issue ID。

  • 输入分支名称。
  • 输入 Issue ID (例如 96737464)。
  • 插件会自动创建分支,并在 Commit 输入框中预填 #96737464#。

2. 为已有分支设置 ID

如果你已经在某个分支上,按 Ctrl+Shift+P,输入 Set Issue ID for Current Branch。

  • 输入 Issue ID。
  • 插件会保存关联,并更新当前的 Commit 输入框。

3. 提交代码

在关联了 ID 的分支上,Commit Message 输入框会自动带有 #{ID}# 前缀。你可以继续输入你的提交信息,例如 feat: 新功能。最终提交消息为 #96737464#feat: 新功能。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft