4

Recently, Visual Studio started highlighting errors in the interactive window, which makes them unreadable:

Error highlighted

How can I remove or change the highlight color? I looked around SO but can't find any of the settings mentioned (e.g. this).

I am using the standard VS dark theme. Other dark themes didn't solve the issue

3
  • 1
    This recently started happening for me too. Since this is in the default dark mode, it seems like this ought to be considered a bug.
    – Chad
    Feb 1, 2022 at 16:22
  • 1
    @Chad Rio's answer points to the right direction to solve the issue. Unfortunately I did not have the time to find the right setting to be modified. You might want to start from there
    – CAPSLOCK
    Feb 2, 2022 at 13:01
  • 1
    Same thing for me... it only happens in docker containers that I "Attach to Visual Studio Code" though. Thanks for the post.
    – j7skov
    Feb 7, 2022 at 22:51

3 Answers 3

4
  • start the Developer tools: Help > Toggle Developer Tools
  • use the top left button and locate the text in the interactive window
  • in the elements tab you can see which terminal colors it uses
  • customize that terminal color for that particular workbench color in your settings.json
  • you can limit that change for a particular theme

I'm not using VSC 1.63 at the moment, so I can't give you the specific name.

2
  • 1
    Adding the following to my settings.json worked: "workbench.colorCustomizations": { "terminal.ansiYellow": "#1e1e1e" }
    – bsauce
    Feb 7, 2022 at 17:08
  • The above comment worked for me too. (@bsauce)
    – j7skov
    Feb 7, 2022 at 23:01
2

Following rioV8's instructions, I added the following to my settings.json:

"workbench.colorCustomizations": {
    "terminal.ansiYellow": "#1e1e1e"
}

Replaces the awful yellow with the same background color as the interactive window in the default dark mode. Works for VSCode v1.63.2.

0

you can install python indent for highlighting your code this plugin is standard you can past this extension kevinrose.vsc-python-indentand dark theme for vscode dhedgecock.radical-vscode in search bar in VScode this extension use for python and vscode.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.