Search code examples
visual-studio-codevs-code-settings

How to customize font color in the error panel of VSCode


enter image description here

How can I customize or change the font color displayed in the editor, such as those shown by linters or code analysis tools?

I want to customize the font color for

Undefined name `abc` Ruff(F821)
"abc" is not defined Pylance(reportUndefinedVariable)

Solution

  • Open settings.json (Open Preferences > Settings > Workbench: Color Customizations)

    Then modify the workbench.colorCustomizations block to include the editorHoverWidget.foreground key so it looks something like this:

    ...
    
    "workbench.colorCustomizations": {
        "editorHoverWidget.foreground": "#00ff00",
    },
    
    ...
    

    (or replace with whichever color you want)

    If this worked for you, please accept the answer