3

For some reasons my Visual Studio code doesn´t show the color for the imported library.

In the attached file you see what I mean.

I tried already:

  • Deinstalled vsc and reinstalled it again
  • deleted the settings.json in (%APPDATA%\Code\User)
  • deinstalled all extensions and reinstalled it again

If you know how I can fix it, let me know it.:)

This picture shows my current vsc without any colors anymore

This picture shows my current vsc without any colors anymore

This picture shows vsc how it should be colored

This picture shows vsc how it should be colored

3
  • I'm not sure what you're referring to in the image. Note though that sleep doesn't return anything, so timer will always be None. Commented Jun 10, 2021 at 20:22
  • If you mean that the text of some code does not have the right color, then maybe you can try another linter? Commented Jun 10, 2021 at 20:27
  • 1
    what do you mean with another linter? Commented Jun 10, 2021 at 20:35

4 Answers 4

2

This is an issue with the newest update of VSCode. Here is a bug report showing the same problems. Changing linters seems not to fix the issue at the moment. Here are the patch notes as well, even though they aren't helpful here. I suggest downgrading VSCode if you want to fix this issue, which may require you to first uninstall it and then reinstall from here. Hopefully they will post a statement on this issue soon for a more permanent fix.

This issue has been fixed in the newest update of the Python extension. Link. Restart VSCode, navigate to the extensions page, and click reload on the Python extension.

Sign up to request clarification or add additional context in comments.

Comments

1

This problem is still there. I disabled C/C++ themes.

After that I am able to see Python imports in color

enter image description here

Comments

0

The issue is generally with the extensions, because I have myself tried all of the possible solutions, but didn't work in my case, and restarting the extensions resolved the issue.

VS code really needs to solve this issue, this is really a big one.

Comments

-1

had the same issue, try downgrading the app, Its working for me

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.