Settings–> Editor–>File Types。
在末尾输入:
*.idea;*.iml;target;
忽略显示所有以idea结尾的文件。
忽略显示所有以iml结尾的文件。
忽略显示target文件夹。