Intellij Annotate Option Grayed Out

后端 未结 11 1218
谎友^
谎友^ 2021-02-05 00:48

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 numb

相关标签:
11条回答
  • 2021-02-05 01:03

    Perhaps you did not check Git Integration while setting up a fresh installation of IntelliJ. It happened to me when I updated to a major release. When I was setting up the new program, I might have unchecked the Git Integration on the wizard installation.

    In order to solve this for IntelliJ Community 2019.1, access File > Settings > Plugins, go to the tab Installed and make sure the plugin Git Integration is checked. You should restart the IDE in order to make the Annotate action work.

    0 讨论(0)
  • 2021-02-05 01:04

    The answer by @activedecay let me in the right direction. In my case, I have a multi-module project - each has a separate git repo - but we're all in the same workspace.

    In my case, Intellij IDEA 2017.2, the Preferences -> Version Control panel shows a listing of all the project roots. The module with the disabled "Annotate" option was in the "Unregistered Roots" section.

    To fix the problem, I selected the module and pressed the "+" icon in the lower toolbar to register the module root with Intellij VCS. The change is immediate and the "Annotate" options becomes available.

    0 讨论(0)
  • 2021-02-05 01:05

    I the following two screen short will solve your problem: 1.

    I hope after those steps you will be able to see who changed a line.

    0 讨论(0)
  • 2021-02-05 01:06
    1. Make sure the file is tracked by version control
    2. Add the project to "Version Control" settings
    0 讨论(0)
  • 2021-02-05 01:06

    Your VCS is not enabled, hence the issue. Below is the solution for that:

    1. Click on the VCS option in the menu bar
    2. Enable VCS
    3. Select your version control
    4. Done, you should be able to use the annotate option.
    0 讨论(0)
提交回复
热议问题