skip to Main Content

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`RuffF821
"abc" is not definedPylancereportUndefinedVariable

2

Answers


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

    Login or Signup to reply.
  2. On settings.json, set the following to have this :

    screenshot

    {
        "workbench.colorCustomizations": {
            "[One Dark Pro]": {   // your theme name
                "editorHoverWidget.foreground":"#ffff00",  
                "textLink.foreground": "#00ffff",  
                "editorHoverWidget.statusBarBackground":"#008800"   // as a bonus
            }
        }
    }
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search