File nesting rules
![Nesting rules off Nesting rules off](https://resources.jetbrains.com/help/img/idea/2024.3/py_file_nesting_example_angular_material.png)
note
Nesting rules apply only to the files with the same names within the same directory.
If the names of two files match a pattern but the files are stored in different directories, PyCharm does not visually "move" any of them.
note
Nesting rules apply only to the files with the same names within the same directory.
If the names of two files match a pattern but the files are stored in different directories, PyCharm does not visually "move" any of them.