I am working on project which is shared by few developers, how to get to know about developer blame in android studio?? any shortcuts or any idea? which will help us to know about code blame.
To enable annotations in your project, add the support-annotations dependency to your library or app. Any annotations you add then get checked when you run a code inspection or lint task.
Android Annotations is an annotation-driven framework that allows you to simplify the code in your applications and reduces the boilerplate of common patterns, such as setting click listeners, enforcing ui/background thread executions, etc.
Use Annotate feature of Android Studio
1.Right click in line number pane
:
2.Select Annotate
In addition to rcde0's answer, which I use all the time. You can also add a keyboard shortcut to toggle this view.
Preferences -> Keymap to bring up this screen:
Type "annotate" in the search area. This will find all commands that refer to the word in the search box.
Click on Git->Git->Annotate, this will bring up the first popup, asking how to proceed.
Select "Add Keyboard Shortcut" like I did here:
Another modal window will pop up, asking you to type in a keyboard shortcut. Select the area I'm pointing to and simply type your keyboard shortcut. You can see that I typed ctrlA. I never use it to jump to the beginning of the line, so this works well for me.
If the keystroke is already defined, it will warn you. Feel free to try other keystrokes until you find one that suits your style without eliminating something that you use for other things. Click OK
to reassign the keystroke.
You'll now see your new keystroke mapped to the various "Annotate" functions. Hit 'OK' to exit preferences.
Try it out. Type your newly-defined keystroke and see the Annotations in the left gutter toggle on and off.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With