IDEA打开的文件不隐藏全部展示(而不是只显示一行) File->settings>Editor>general>Editor Tabs>appearance>show tabs in one row这个勾选去掉就可以了