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?


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:

Comment actions Permalink

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


Please sign in to leave a comment.