简体   繁体   English

PhpStorm-如何按字母顺序显示文件?

[英]PhpStorm - How to show files in alphabetic order?

In NetBeans 8.2 all files are shown in their alphabetic order, this is very useful because I can find a file extremely fast. 在NetBeans 8.2中,所有文件均按字母顺序显示,这非常有用,因为我可以非常快速地找到一个文件。

NetBeans

However, in PhpStorm this is not the case as you can see here: 但是,在PhpStorm中并非如此,您可以在此处看到:

暴风雨

How can I enable this feature? 如何启用此功能?

Those are editor tabs and they are listed in that drop-down list in the same order as you arrange them. 这些是编辑器选项卡,它们按照您排列它们的顺序在该下拉列表中列出。

If you want alphabetical order -- choose Sort Tabs by Filename from Editor Tab context menu (right clicking on editor tab). 如果要按字母顺序排列-从“编辑器选项卡”上下文菜单中选择“ Sort Tabs by Filename (右键单击“编辑器”选项卡)。

Note: this will be applied to ALL tabs and not only those that are currently hidden (my impression from NetBeans screenshot). 注意:这将应用于所有选项卡,不仅适用于当前隐藏的选项卡(我从NetBeans屏幕截图中获得的印象)。

There is no option to sort only hidden tabs in alphabetical order. 没有选项只能按字母顺序对隐藏的标签进行排序。


Possible alternative to managing tabs/navigating between the files is to use View | Recent Files 管理选项卡/在文件之间导航的可能替代方法是使用“ View | Recent Files View | Recent Files ( Ctr + E using Default keymap) and/or Navigate | File/Class... View | Recent Files (使用默认键盘映射的Ctr + E )和/或Navigate | File/Class... Navigate | File/Class... . Navigate | File/Class...

This depends what you prefer/how you used to manage your files. 这取决于您的喜好/过去用来管理文件的方式。

These popups can be used even with Editor Tabs hidden (eg when you need maximum space for editor to see your code). 即使隐藏了“编辑器”选项卡,也可以使用这些弹出窗口(例如,当您需要最大的编辑器空间来查看代码时)。


Some useful links to check: 一些有用的链接来检查:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM