31
votes

For a while now, newer versions of Visual Studio have been able to display in-line information for methods, fields etc relating to how many times they may have been referenced or changed and who changed the code last. This feature is known as CodeLens.

Image showing CodeLens feature

Is there any plugin or feature in IntelliJ IDEA similar to this that would be able to display information on an individual class/field/method basis?

4
I think you can create a feature request at intellij-support.jetbrains.com/hc/en-us/requests/newstsatlantis

4 Answers

15
votes

There is no such plugin (yet).

You can of course right click the left gutter (gray editor to the left of the editor) and select "Annotate". That gives you at least the last edit per line.

More similar to your desired feature (but unfortunately not inline): Select some text (e.g. a method), then right-click Git -> Show History for Selection.

13
votes

Now there is JetBrains plugin named GitToolBox.

It has some similar functionality, including the current line "blame annotation" at the end of the line with detailed commit information:

enter image description here

9
votes

(For CodeLens function references feature) Now it's a built-in feature after version IntelliJ IDEA 2020.1.

You can enable it from:

enter image description here

Ref: https://blog.jetbrains.com/idea/2020/03/intellij-idea-2020-1-beta2/

1
votes

This feature is available for Rider, but not for IntelliJ yet. In Rider it's called Code Vision

You can vote for this feature request in IntelliJ IDEA here