Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why do you even care? I never look at that part of the code. If PyCharm automatically removed/added imports without me managing them I would be a happier person.


But Pycharm can (pretty much)!

Alt-enter over the would-be imported term to add an import, ctrl-alt-O to autoformat / autoremove (aka optimise) redundant ones.

You can then turn on folding to not see those imports much via Prefs -> Editor -> General -> Code Folding


I look at that part of the code routinely. When I'm reading code I didn't write it lets me know what package something came from.


There is an option to hide and autoformat inports.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: