Change error highlight color in vs code
visual-studio-code
Solution
Apparently, you can actually change it without using an extension. I created an issue and got the answer that this color is called `editor.rangeHighlightBackground` and you can override it in your User Settings (`settings.json`) by:
{
"workbench.colorCustomizations": {
"editor.rangeHighlightBackground": "#00AA00"
}
}
To open User Settings just use `Cmd+,` on mac or `Ctrl+,` on windows
Problem
I build a project and get some problems in the "Problems view", I click on the problem to see a line of code with that problem highlighted. And it gets highlighted indeed. However, if dark-styled theme is used, highlight is, for me at least, really hard to notice (line 23 is highlighted): I guess this color can't be simply hard-coded somewhere since it's different in, for example, red theme and light-styled themes: Is there a way to change this color? UPD: This question is not a duplicate of "change the error style"; error style (squiggle) applies to all errors at once, my question is about highlighting only the selected error.