PHPStorm color highlighting

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)?

8 comments

Hi there,

All editor colors can be found under "Preferences | Editor | Colors and Fonts" section.

Where are the various colors used for inspection hgihlighting set?


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)

In particular, I am wondering what the beige background color in javascript files means.

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.

Find the documentation?

PhpStorm Web Help

As a last resort, what is the specific answer (javascript text; beige background highlighting)?

Without screenshot and actual code (which can be used locally) -- no idea -- your color scheme could be completely different to mine.

0

I use the default theme. Here is a screen shot.



Attachment(s):
Screen Shot 2013-10-16 at 7.56.48 PM.png
0

Based on screenshot it should be "General | Warning"

0

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.

0

Sorry, cannot advise anything except trying "File | Invalidate Caches..." here after seeing one function out of context.

0

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.

0
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.

0

My main and frequent uses of "Invalidate Caches" off the top of my head are for the following:

  1. The VCS reporting "no changes" just after I have made a change.
  2. When clicking on items in the structure window does not position to the code
  3. Problems with wrapping code.
  4. Problems with insertiong a a large and growing number of space characters on press of any key
  5. Other miscellanous issues.
0

Please sign in to leave a comment.