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内置工具查询:
- 按下
Ctrl+Shift+A(Windows/Linux)或Cmd+Shift+A(Mac) - 搜索并打开"Show Action IDs"功能
- 将鼠标悬停在Commit工具栏的AI按钮上,即可看到其对应的Action ID和所属Group信息
内容的提问来源于stack exchange,提问作者oksymisbah
相关产品推荐
相关产品推荐

