PHPStorm color highlighting Follow
Where are the various colors used for inspection hgihlighting set? I see various code elements highlighed in this way, but cannot determine the patterm.
In particular, I am wondering what the beige background color in javascript files means. To me it would be easiest to look into the preferences and just look at the various settings. So I looked in the Preferrences > Project Settings > JavaScript and in all the subsections. But did not find anything.
Next looked in Preferences > IDE Settings > Editor > Colors & Fonts > Javascript and went through all of the members. Still did not find anything.
Next looked at anything that seemed promising. Still no joy.
Where do I do any of the following:
1. Find the Preferences setting?
2. Find the documentation?
3. As a last resort, what is the specific answer (javascript text; beige background highlighting)?
Please sign in to leave a comment.
Hi there,
All editor colors can be found under "Preferences | Editor | Colors and Fonts" section.
In general it should be under "General" (e.g. "Error", "Warning", "Weak warning" etc), unless it's a custom severity (which is rather unlikely, otherwise you would know where to look for that color as it needs to be setup manually)
What color scheme do you use? If it's not Default or Darcula then switch to one of them and state what color is there.
PhpStorm Web Help
Without screenshot and actual code (which can be used locally) -- no idea -- your color scheme could be completely different to mine.
I use the default theme. Here is a screen shot.
Attachment(s):
Screen Shot 2013-10-16 at 7.56.48 PM.png
Based on screenshot it should be "General | Warning"
Ok, so that is part of the question (ie, where is it set).
So what is wrong with "return true". The help message talks about constructors, new and @return. I don't understand any of that.
Sorry, cannot advise anything except trying "File | Invalidate Caches..." here after seeing one function out of context.
I did "invalidate caches" and surprisingly, all those general error > warnings went away.
When I first started using PHPStorm, I did not even know what "invalidate caches" was because I never needed it. Seems it is a daily need nowadays.
Not in my experience. Only after updating PhpStorm to a newer version (but since I'm on Windows .. and using full installer .. I can do this at uninstall/install step).
But yes -- if you see an error out of nowhere that does not make much sense, especially if it was not there yesterday on the same code ... "Invalidate Caches" is the first thing to check.
My main and frequent uses of "Invalidate Caches" off the top of my head are for the following: