How to ignore *.egg and *.egg-info folders everywhere but in site-packages folder?

How to ignore *.egg and *.egg-info folders everywhere but in site-packages folder?

I added *.egg and *.egg-info to the "Settings->File Types->Ignore files and folders" but then I noticed they are hidden also in External Libraries node in Project view which I would rather avoid.

Please sign in to leave a comment.