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

如何在PhpStorm 2024.1中隐藏/显示Git注释?

如何在PhpStorm 2024.1中隐藏/显示Git注释(支持快捷键)

快捷键快速切换

  • Windows/Linux:按下 Ctrl + Shift + A 调出动作搜索框,输入 Toggle Git Blame 并回车,即可一键切换隐藏/显示状态。
  • macOS:按下 Cmd + Shift + A 调出动作搜索框,输入 Toggle Git Blame 并回车完成切换。
  • 自定义快捷键:
    1. 打开 File > Settings > Keymap(Windows/Linux)或 PhpStorm > Settings > Keymap(macOS)。
    2. 在搜索框输入 Toggle Git Blame 定位到对应动作。
    3. 右键点击该动作,选择 Add Keyboard Shortcut,设置你偏好的快捷键组合后保存即可。

界面按钮操作

在代码编辑器右上角找到Git Blame按钮(图标为带提交标记的样式,或显示Blame字样),点击即可切换显示状态。

全局设置控制

  1. 打开 File > Settings > Version Control > Git > Blame(Windows/Linux)或 PhpStorm > Settings > Version Control > Git > Blame(macOS)。
  2. 通过勾选/取消Show blame annotations选项,全局控制Git注释的显示与否。

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.24 21:45:56