如何为“git-annotating”文件指定时间戳格式

Mar*_*cha 7 intellij-idea

在 intellij IDEA 中,当您有 GIT VCS 时,您可以执行以下操作: -> Git -> Annotate,这会生成git blame.

但由于某种原因,生成的时间戳不尊重 git 设置(至少生成的内容git blame不同),“右键单击注释,->选项->显示提交时间戳”不执行任何操作,而且我没有找到可能性指定这个的格式。

动机:默认格式错过了时间,并使用美国日期格式,这是“由于其愚蠢的著名订单”,抱歉,我的意思是因其愚蠢的订单而闻名,并且总是花费我 10 倍的时间来弄清楚,它是什么日期。

是否有可能有 iso 时间戳?

Bas*_*ers 13

  • Preferences | Appearance & Behavior | System Settings | Date Formats
  • 启用覆盖系统日期和时间格式复选框。
  • yyyy MM dd kk:mm日期格式文本字段中输入类似内容。

这将在 Git Blame Annotations 中显示您首选的时间格式(如果需要,还可以包括时间戳)。