You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

IntelliJ 2026版Commit工具栏插件Action不显示,求正确group-id

IntelliJ 2026 Commit工具栏正确Group-ID及配置方案

在IntelliJ 2026版本中,Commit工具栏的Group-ID已从旧版的ChangesView.CommitToolbar更新为:
Git.Commit.Toolbar

你可以直接修改XML配置,同时为了精准将按钮放在AI提交消息生成器按钮旁,建议使用anchor="after"并指定相对Action ID,配置示例如下:

<action id="CommitCraft.GenerateMessage" class="com.example.commitcraft.CommitMessageInserter" text="🔨 Craft">
    <add-to-group group-id="Git.Commit.Toolbar" anchor="after" relative-to-action="Git.CommitMessage.Ai.Generate"/>
</action>

关键参数说明:

  • Git.Commit.Message.Ai.Generate是AI提交消息生成按钮的默认Action ID,确保按钮能精准定位到目标位置
  • anchor="after"指定按钮放在目标Action的右侧,完全匹配你所需的布局

验证方法(可选):

若需要确认最新的Action或Group ID,可通过IntelliJ内置工具查询:

  1. 按下Ctrl+Shift+A(Windows/Linux)或Cmd+Shift+A(Mac)
  2. 搜索并打开"Show Action IDs"功能
  3. 将鼠标悬停在Commit工具栏的AI按钮上,即可看到其对应的Action ID和所属Group信息

内容的提问来源于stack exchange,提问作者oksymisbah

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.11 12:12:08