Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to display "git blame" in PhpStorm after opening file by default

How to display "git blame" after opening a file by default in PhpStorm.

Without "right-click the left gutter, and select the Annotate option", I want to display "git blame" by default after just opening files.

like image 887
NH_j Avatar asked Dec 19 '14 02:12

NH_j


People also ask

How do I see git blame in Intellij?

Right-click the gutter in the editor or in the Differences Viewer and select Annotate with Git Blame from the context menu.

What is Annotate with git blame?

The git blame command annotates lines with information from the revision which last modified the line, and... with Git 2.22 (Q2 2019), will do so faster, because of a performance fix around " git blame ", especially in a linear history (which is the norm we should optimize for).


1 Answers

'git blame' is supported - the command is called annotate in PhpStorm.

  1. Right-click the file
  2. Choose Git > Annotate

Annotate option in the context menu

Annotate result in the file

like image 76
lena Avatar answered Sep 30 '22 21:09

lena