Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn on "unused imports" highlighting in PyCharm

Tags:

pycharm

My PyCharm doesn't mark any imports as unused.

Me (os is not using):

enter image description here

Should be (found this picture in web):

enter image description here

How can I enable it?

like image 485
Mikhail Gerasimov Avatar asked Jun 02 '15 01:06

Mikhail Gerasimov


2 Answers

Have you seen this green icon in the top right corner? You can choose which problems you want to display. Just choose "All problems".

I tried everything: reinstalled pycharm, cleaned caches, tried other projects, etc. And this is what solved it for me

I missed warnings so much

like image 122
dc914337 Avatar answered Oct 22 '22 02:10

dc914337


For the next person coming across this the following might help:

  • Click "File";

  • Click "Invalidate Caches / Restart..."

  • Click "Invalidate and Restart"

This can resolve the problem when unused imports are not shown.

like image 28
Bono Avatar answered Oct 22 '22 02:10

Bono