PhpStorm - Remove underlining of SQL statement in PHP

2.4k views Asked by At

I'm using PhpStorm with the Monokai scheme. When I write an SQL statement in PHP they get underlined. Where can I disable/change this? See images below. I've looked in Color & Fonts but can't seem to find the place to change it. I'm used to the Monokai scheme so I would like to keep using it.

In Monokai scheme:

Monokai scheme

In Dracula scheme:

Dracula

Thanks!

1

There are 1 answers

1
LazyOne On BEST ANSWER

What you see there is a warning from one of the SQL Inspections.

Your options:

  1. Fix the actual issue that Inspection is warning you about

  2. Disable that inspection (those inspections, if there are more than one warning) at Settings (Preferences on Mac) | Editor | Inspections | SQL

  3. Change SQL dialect from specific (e.g. MySQL) to Generic where you will have only generic syntax highlighting and no SQL code validation will be performed (no code helpers will be available)

  4. Change style for actual "Warning": Settings (Preferences on Mac) | Editor | Colors & Fonts | General --> Warning (NOTE: If Monokai is bundled theme (not installed by you) then you will have to create your own copy before making changes as bundled schemes cannot be modified)