Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio: how to show author of just selected line

I noticed a pretty feature in Visual Studio Code (don't know if it's due to the GitLens extension): when I'm editing a line I can see the GIT annotation of that line including author, time of last edit and commit message.

enter image description here

This is quite cool, since it does not take a big amount of space as the "annotations" pane that you can enable in Android Studio. It's fast, easy, straightforward.

My question is: is there any Android Studio extension, as far as you know, allowing a similar visualization?

Thank you Marco

like image 354
Marco Zanetti Avatar asked Mar 09 '18 08:03

Marco Zanetti


People also ask

How do I copy a line down in Android Studio?

Copy line: To copy a whole line place your cursor anywhere on that line and press Ctrl+C. This will automatically select the whole line and copy it to the clipboard.

Why does Android studio have lines?

That line historically represents the margin of A4 paper, which is useful only if you need to print the code. Old school says that you should keep your code inside that margin, to guarantee much portability.


2 Answers

I managed to get the same in Android studio by using a plugin called GitToolBox

enter image description here

enter image description here

like image 61
Marco Zanetti Avatar answered Oct 01 '22 21:10

Marco Zanetti


You can right click besides line number (Left side strip where we put breakpoints) in Android studio code and check annotate option.

OR

You can right click in code file, then select Git option and then select annotate option.

like image 38
Bhagwat K Avatar answered Oct 01 '22 22:10

Bhagwat K