How do I change color of the 4 dots under unused imports in Python?

Lord Wolfenstein 46 Reputation points
2024-08-16T14:29:28.12+00:00

Unused imports in Python in Visual Studio get 4 dots under them but I would like the color to be more visible than gray. I looked in Tools->Options->Envorionment->Fonts and Colors but I have not found that option to change.

In this case raises is unused and have 4 dots under them. How do I change the color of these dots to make it easier to spot?

User's image

Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Michael Taylor 60,326 Reputation points
    2024-08-16T15:02:12.42+00:00

    Firstly, each language service could use its own styling and therefore you'd need to work with whoever wrote the language service to resolve this. However if they are relying on the standard coloring built into VS, which they should, then you usually can change it via Fonts & Colors. If it isn't available there then you may have to step out to the theme editor and edit it there. Most things are configurable, but not everything.

    To figure out what to change you need to find out what the decorator is that is being used. I'm guessing that this is an interpreter warning, an analyzer notice or a quick action notice. I'm guessing it is an analyzer notice. Try changing the coloring of Suggestion ellipses in Fonts & Colors. This is what backs the ellipsis for the analyzers.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Gowtham CP 6,030 Reputation points Volunteer Moderator
    2024-08-16T14:56:30.7966667+00:00

    Hello Lord Wolfenstein ,

    Thank you for your question on the Microsoft Q&A.

    Unfortunately, Visual Studio doesn’t let you customize the color of those dots for unused imports directly. You could try adjusting your text contrast settings for better visibility. This is a limitation of the current implementation. Many users have expressed their desire for this feature, and it's possible that it might be added in future updates.

    If this response was helpful, please remember to upvote , Accept as answer , mark it as "Verified" so others can benefit from it.

    Thank you!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.