在idea显示目录的时候有时候会显示 '.idea目录 *.iml等配置文件'。可以通过以下方式让其不显示: File | Settings | File Types: 找到Ignore file and folder 将.idea *.iml添加进去。然后点击Apply、OK即可。 如果使用git,不要忘记把这些文件添加到.gitingore中 相关文章: 2022-12-23 2021-08-10 2022-02-07 2022-01-14 2021-10-10 2021-06-05 2022-12-23