1.在idea左上角点击file–>settings 2.Editor–>General–>Editor Tabs,将show tabs in single row前面的勾去掉就可以了,默认多行显示最多的数量时10个文件,超过10个文件之后也会自动隐藏掉超出的部分