打开File-->Settings-->Editor-->File type,点击Ignored Files and Folders。 点击加号,输入目标文件,回车即可。 以上,即实现了文件的隐藏效果。(commit时不提交)