如何制作“PHP Explorer” (项目资源管理器?) Eclipse/PDT 中的会话之间持续存在区域?
PHP Explorer 是 eclipse PDT 选项卡(标准配置中的最左侧),您可以在其中浏览项目的文件夹。我相信标准 Eclipse 中的同一选项卡称为“Project Explorer”,但我不确定。
我遇到的情况是,当我关闭并重新打开 Eclipse 时,尽管在关闭时打开的文件在重新启动 Eclipse 时仍然打开,但 PHP Explorer 中的所有文件夹层次结构(我在关闭时打开了各种文件夹) )显示为折叠的。
有没有办法告诉 Eclipse 以关闭时的方式重新打开我的所有文件夹?
预先感谢您的宝贵时间!
PHP Explorer is the eclipse PDT tab (the leftmost in standard configuration) where you can browse the folders of your project. I believe the same tab in standard eclipse is called "Project Explorer" but I am not sure.
What happens to me is that when I close and reopen eclipse, although the files that were open at close time are still open on relaunch of eclipse, all my folder hierarchy in PHP Explorer (where I had various folders open at close time) is displayed collapsed.
Is there away to tell eclipse to reopen all my folders the way they were at close time?
Thank you in advance for your time!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
为了快速访问层次结构深处的文件,我使用以下命令:
Ctrl-Shift-R(打开资源)对话框/开始输入文件名/打开文件
如果我还想查看层次结构中的文件,我使用:
右键单击/显示在/PHP 资源管理器
编辑:我刚刚发现了另一个选项。在PHP Explorer控件的右上角,有一个“与编辑器链接”按钮,它使PHP Explorer自动显示树中包含正在编辑的文件的部分。
For the sake of quick access to a file deep in the hierarchy, I use the following:
Ctrl-Shift-R (Open Resource) dialog/Start typing filename/open file
If I also want to see the file in the hierarchy, I use:
Right click/Show In/PHP Explorer
EDIT: I've just discovered another option. In the upper right of PHP Explorer control, there is the "Link with editor" button, and it makes the PHP Explorer automatically show the part of the tree containing the file being edited.
由于 php 导航器不受 Pascal 建议的技巧的影响,我建议绑定菜单:
Show In > PHP Explorer
类似 Ctrl+P
要执行此操作,请转至:
Window > PHP Explorer首选项
常规>键
搜索“显示在(显示在目标 ID:PHP 资源管理器)”
在绑定输入中绑定 Ctrl+p(或您可能喜欢的任何内容):)
希望这有帮助
Since the php navigator isn't affected by the trick Pascal suggested I recommend binding the menu:
Show In > PHP Explorer
To something like Ctrl+P
To do this go to:
Window > Preferences
General > Keys
Search for "Show in (Show In Target Id: PHP Explorer)"
Bind the Ctrl+p (or whatever you may like) in the binding input :)
Hope this helps
也许这可以帮助:
不确定它是否适用于所有事情,但它应该使事情至少变得更好一点...
编辑:我刚刚检查过,可以肯定的是:我关闭并重新打开 Eclipse,并且“导航器”视图已恢复,并且打开了正确的目录。
不确定“PHP Explorer”,因为我不使用那个...但运气好的话,它可能会做同样的事情...
Maybe this can help :
Not sure it'll do for everything, but it should make things at least a bit better...
Edit : I just checked, to be sure : I closed and re-opened Eclipse, and the "Navigator" view has been restored, with the right directories opened.
Not sure about "PHP Explorer", as I don't use that one... But with a bit of luck, it might do the same...
我猜您只是遇到了太多混乱,需要专注于与当前任务相关的内容?如果是这种情况,您应该熟悉 Mylyn。您可以定义任务(不需要涉及服务器,可以在本地定义这些任务)并分配上下文:任务中涉及的相关资源。大多数 Eclipse 视图都可以进行过滤,以仅显示给定任务的相关信息。
I'm guessing that you are just having too much clutter and need to stay focused on what's relevant for your current task? If that's the case, you should familiarize yourself with Mylyn. You can define tasks (no need for a server to be involved, these can be defined locally) and assign context: the relevant resources involved in the task. Most of the Eclipse views can be filtered to show just the relevant information for the given task.