Flatten packages / folders in pycharm
I am using pycharm professional 2021.3.3.
I have a hierarchy of folders with a package folder in the end
I want to see the hierarchy flattened like it is in intellij
in intellij the packages org.example are in one line

in pycharm it shows each folder in a different line

How can I do this in pycharm? this way if we have a large hierarchy it won't take much space in the ide
Please sign in to leave a comment.
I don't think PyCharm supports that, and to be honest I never seen a demand for such convention in Python.
Please feel free to submit a feature request to our issue tracker at https://youtrack.jetbrains.com/issues/py?q=type:%20Feature%20 , and let us know if you require any help.
Andrey Resler
That's interesting. The package/module scheme based on a hierarchical directory structure is present in different languages, so it would be natural to assume the feature to flatten this hierarchy would be universally useful for these languages.
This feature is present in IntelliJ IDEA, which supports Python, and there is no reason it should be cut out from the paid version of PyCharm.
Something similar called Compact Folders is available in VS Code since 2019 – https://code.visualstudio.com/updates/v1_41#_compact-folders-in-explorer
He did at https://youtrack.jetbrains.com/issue/PY-55244/Flatten-package-hierarchy
The question is, what have you done with it since he raised this issue 4 years ago?
Hi Piotr Dobrogost (softax)
I am checking internally regarding this however let us please follow the discussion in the YouTrack issue for not having a duplicate communication channel regarding this.
Kind regards,