Used to use NetBeans. I switched to PhpStorm and over time I realized that I really lack this functionality.

Sample and docks:

-Синий - Обозначает строки, измененные по сравнению с более ранней версией. -Зеленый - Обозначает строки, добавленные к более ранней версии. -Красный - Обозначает строки, удаленные по сравнению с более ранней версией. 

example

    2 answers 2

    If you specify that the project uses git , all changes immediately begin to show:

    enter image description here

    https://www.jetbrains.com/help/phpstorm/2016.1/file-status-highlights.html#2

    Only, it is not entirely clear what you call the "main version". PhpStorm shows changes from the previous version. Compare with an arbitrary commit is also possible, but for this a separate interface.

    • HM thank you. On a white background as it did not catch the eye - Jeque

    Such functionality in PHPStorm is out of the box.

    To use it, you need to go to Settings -> Version Control. PhpStorm will tell you if you have a repository for this project. Just select it in the list and under the list, click on the plus sign.

    After that, the program will start to show changes in files in the same way as you specified.