Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: highlighted imports in python

I use Visual Studio Code both on my work Windows laptop, and on my Ubuntu PC at home.

There's a functionality that I can see from my Windows vscode that I'd like to have on my Ubuntu one as well, but can't find whether it's a setting, extension, or something else.

The functionality is this: python imports are highlighted in green, and if they are not used, they are dimmed.

Windows screenshot, how I want it to work:

https://i.sstatic.net/oA1Y0.png

Ubuntu screenshot, how it currently is:

https://i.sstatic.net/33WqC.png

Does anyone know where I should look? I'm using the same colour theme on both, Monokai.

Thanks!

like image 727
rtert Avatar asked Jun 24 '26 21:06

rtert


1 Answers

I fixed it by installing the extension Settings Sync and syncing settings and extensions of my two installations. If it was an extension indeed, it probably was fixed by removing the Python Extension Pack and installing Python for VSCode.

like image 158
rtert Avatar answered Jun 27 '26 16:06

rtert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!