1、首先,打开一个的IntelliJ IDEA代码工具的界面中

2、点击了左上角中的 file 菜单

3、点击了file菜单之后,弹出了下拉菜单选中为 settings 选项

4、进入到了settings界面中,选中 editor tabs 选项

5、选中 editor tabs 选项之后,勾选上 show directory for non-unique file names 选项

6、勾选上 show directory for non-unique file names 选项之后,点击 ok 来保存当前的设置。
