It used to be the case that when I did not use a variable in Pycharm, the IDE editor would make the variable appear gray. That feature is gone now and I cannot get it back. Does anyone know how to get this feature back?
In the Settings open Editor -> Inspections. In the list in the middle open the python category and look for "Unused local" (it is sorted alphabetically). That should be checked.
Also check your color settings in case the variable simply doesn't get highlighted the way you want it.
As @TehSphinX mentioned, the Editor -> Inspections settings is where it is. Use the search bar.
Also, perhaps as important: don't forget the "reader mode" in that mode pycharm does not analyze your code even if the preference settings are right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With