File -> Settings -> Version Control -> Show directories with changed descendants
此图片参考;https://blog.csdn.net/Skye_H/article/details/85317694
官方文档;https://www.jetbrains.com.cn/help/idea/viewing-changes-information.html#file_statuss
File -> Settings -> Version Control -> Highlight directories that contain modified files in the Project tree