Intellij注释选项灰显 [英] Intellij Annotate Option Grayed Out

查看:125
本文介绍了Intellij注释选项灰显的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想看看谁在Intellij 15中更改了一行。我知道我可以使用git blame但我想学习如何在intellij中正确地完成它。我正确地点击了文件中的行号,但是当我得到上下文菜单时, annotate 选项显示为灰色。我缺少什么设置?

I am trying to look at who changed a line in Intellij 15. I know I can use git blame but I want to learn how to do it correctly in intellij. I am right clicking on the line numbers on the file but when I get the context menu the annotate option is grayed out. What setting am I missing?

我看了页面无法找到答案。我错过了什么?

I looked at this page and couldn't find an answer. What am I missing?

推荐答案

看起来像是一个新项目。首先像Git一样配置版本控制,而不是至少提交一次。第一次提交后,Annotate选项不会显示为灰色。

Looks like its a fresh project. First configure the Version Control like Git and than commit at least once. After first commit Annotate option will not be grayed out.

同时更新任何新版本的git。

Also update git for any new version.

这篇关于Intellij注释选项灰显的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆