PHP Storm not highlighting the code change
Hi All,
Language used: PHP, Javascript, jQuery, CSS
When I purchased PHPStorm the code change was highlighted and now for some reason it's not highlighting any code change at all.
Please sign in to leave a comment.
Do you mean those color blocks? You can enable them at File | Settings | Tools | Diff & Merge: Highlight modified lines in gutter checkbox.
Hi,
I have the same problem in PHPStorm 2019.3
I have enabled Highlight modified lines in gutter checkbox but sometimes it doesn't work. The file change color but the row doesn't have any color...
Please try disabling all custom plugins at Settings | Plugins > Installed: Downloaded, restart IDE and check the issue after that. If that doesn't help - please attach a screenshot of that
I install 2019.2.5 and it works good...
I have both 2019.2.5 and 2019.3 and I noticed this:
I open file and change anything. The color of filename on tab change immediately in both version. The color of gutter in 2019.2.5 change after few seconds and any next change will change the gutter immediately. But the color of gutter in 2019.3 change after minutes. And not just the first, any change takes minutes to change color of gutter... I try Invalidate cache / Restart but that not help
I think there is some problem with indexing files? But this happen long after starting PHPStorm.
Are you working with a project located on a network share or there are some symlinks?
Same for me. The file is shown as green (Git staged) but the lines are not highlighted. Even, I edit those lines, there's no reaction ob the gutter. I've disabled all downloaded plugin and restarted. Same. I'm using PhpStorm 2019.3.1, Build #PS-193.5662.63
Claudiu Cristea Did you notice if gutter highlighting is seen for modified files (blue-coloured file names)?
Did this ever get a follow-up somewhere? I still see the same behavior as Claudiu Cristea describes. Gutter highlighting is enabled and works as expected, except in new and staged files. I would expect that if `git diff` can show a difference between the current and staged version, gutter highlighting should work too.
Eugene Morozov, I agree, that wouldn't make sense. But I'm talking about the situation where a file has been added first, and is then changed. So it's a new file (never committed before), it has been added to the git index, and now there is a difference between the index and the working tree (I hope I'm using all the git terminology correctly). At this point `git diff myfile.txt` shows the difference between index and working tree, but PhpStorm's gutter highlight does not.
That you for the clarification, now I get it.
Checking this kind of diff is possible if you enable Settings | Version Control | Git | Enable staging area.