Change color of unresolved variables in JS
In PHP when i have an unresolved variable (variable that doesn't exist) I have my editor settings setup so that it shows a bright red highlight over the variable.
I'd like to do the same thing for JavaScript but not sure how…
In this photo you can see it has a faint underline for undefined variables:

I want this instead to be bright red like it does in PHP:

How can I achieve this for JS?
Please sign in to leave a comment.
Please try changing the severity of the JavaScript and TypeScript | General | Unresolved reference inspection (in Settings | Editor | Inspections) to Error - does it help?
Elena Pogorelova Unfortunately that only kind of worked half way…it makes the text red instead of highlighting with a red background and white text. See the “btn” variable below.
You can change the way errors are highlighted in Settings | Editor | Color Scheme | General, Errors and Warnings > Error or specify a custom severity for the JavaScript and TypeScript | General | Unresolved reference inspection.
Elena Pogorelova That worked thank you