Is there a way to have IntelliJ IDEA automatically display Git / VCS annotations in the left margin for every file that I open? Right now, I can bring them up by right-clicking in the left margin and choosing Annotate
or by using the VCS -> Git -> Annotate
menu option. Both of these options are cumbersome when I want to view annotations for dozens of files in a row.
I'm using IntelliJ Ultimate 12.1.3.
Press Alt+` to open the VCS Operations Popup and select Enable Version Control Integration. Alternatively, from the main menu, select VCS | Enable Version Control Integration.
Enable annotations Right-click the gutter in the editor or in the Differences Viewer and select Annotate with Git Blame from the context menu. You can assign a custom shortcut to the Annotate command: go to the Keymap page of the IDE settings Ctrl+Alt+S and look for Version Control Systems | Git | Annotate.
Select the branch you want to compare with in the Git branch popup in the status bar in the bottom right of the IntelliJ window. A popup with some options is shown. Select the "Compare" option. This by default shows all the commits you can also select the "Diff" tab to show the actual changes.
In the Local Changes view, select the changes that you want to move to another changelist. on the toolbar and choose Move to Another Changelist Alt+Shift+M . In the dialog that opens, select an existing changelist or enter the name for a new changelist.
I found that by using the keyboard path it was pretty straight forward. {ALT + S} > g > n - will display the annotations, but I wanted a faster way.
So i created a shortcut. File > Settings > Keymap > Main menu > VCS > GIT > right click annotate and 'add keyboard shortcut' - I used {Ctrl + Alt + z} since that didn't conflict with any I already had.
Hope that helps
I was searching for the same feature for a while, but couldn't find in intellij 13.0.
So I ended up adding up shortcut(Ctrl Alt 0
) through File->Settings->keymap
, which will show or hide the VCS annotation.
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