Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatically displaying VCS annotations in IntelliJ IDEA

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.

like image 737
Josh Rosen Avatar asked May 14 '13 06:05

Josh Rosen


People also ask

How do I show VCS in IntelliJ?

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.

How do I show annotations in IntelliJ?

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.

How do I see Git diff in IntelliJ?

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.

How do I view Changelist in IntelliJ?

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.


2 Answers

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

like image 130
adswebwork Avatar answered Sep 19 '22 07:09

adswebwork


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.

intellj vcs annotation

like image 38
prayagupa Avatar answered Sep 23 '22 07:09

prayagupa