How to have same syntax color for class definitions and class usages?

When defining a class like this, the class name is colored in the syntax color I configured for classes:

When then creating an instance of the class, the syntax color for classes is not used, but instead the syntax color for identifiers:

This is a weird behavior I never saw in any IDE before. It looks more like a bug to me.

My question

How to tell PhpStorm to always keep the color for classes even when instantiating them?

 

2 comments
Comment actions Permalink

At the moment, there's no way to mark usages with the same property. I agree that this is a bug and has to be fixed:
https://youtrack.jetbrains.com/issue/WI-68702/Color-Scheme-PHP-Classes-and-Properties-Class-doesnt-get-applied-to-class-usages

1
Comment actions Permalink

Thank you very much for you answer and for creating the issue in YouTrack, Eugene 🙂

0

Please sign in to leave a comment.