简体   繁体   English

将“在资源管理器中显示”添加到phpstorm菜单

[英]Adding 'show in explorer' to the phpstorm menu

When right clicking on a folder/file in the project explorer I get an option to show in explorer 在项目资源管理器中右键单击文件夹/文件时,我可以选择show in explorer

在此处输入图片说明

However when right clicking inside the file or the code view I do not get this option. 但是,在文件或代码视图中单击鼠标右键时,我没有此选项。

在此处输入图片说明

Is there a way to add this to the menu? 有没有办法将其添加到菜单?

Editor context menu: you have to add it there yourself -- Settings | Menus and Toolsbars | Editor Popup Menu 编辑器上下文菜单:您必须自己添加它- Settings | Menus and Toolsbars | Editor Popup Menu Settings | Menus and Toolsbars | Editor Popup Menu

On another though: use keyboard -- it's faster : Alt+F1, 8 or View | Select In... | Show In Explorer 不过,另一个方法是: 使用键盘-更快Alt + F1、8或“ View | Select In... | Show In Explorer View | Select In... | Show In Explorer View | Select In... | Show In Explorer . View | Select In... | Show In Explorer

Alternatively: assign custom shortcut to that specific action at Settings | Keymap 或者:Settings | Keymap为该特定操作分配自定义快捷方式Settings | Keymap Settings | Keymap -- search by "show" word -- the action will be listed at the very end of the matched list: "Show/Revel in Explorer..." Settings | Keymap -通过“显示”字词进行搜索-操作将列在匹配列表的最后:“在资源管理器中显示/显示...”

Edit the context menu: 编辑上下文菜单:

File | 档案 | Settings (Alt + F7) | 设置 (Alt + F7)| Menus and Toolbars | 菜单和工具栏 | Editor Popup Menu 编辑器弹出菜单

Choose the first item (Spelling), click the button Add After... and then choose the command: Other | 选择第一项(拼写),点击按钮后添加...,然后选择命令: 其他 | Show In Explorer 在资源管理器里显示

在此处输入图片说明

Or you can add a shortcut key to open Explorer. 或者,您可以添加快捷键以打开资源管理器。 (i try this in Ubuntu) (我在Ubuntu中尝试)

  1. Add an external tool (Settings -> Tools -> External Tools) 添加外部工具(设置->工具->外部工具)
    add tool under that [ screenshot ] 在该[ 截图 ]下添加工具
    Program : nautilus 程式:鹦鹉螺
    Parameters: $FilePath$ 参数:$ FilePath $

  2. Add this in Keymap (settings -> keymap) 将其添加到键盘映射中(设置->键盘映射)
    Under [External Tools] you will find your new tool. 在[外部工具]下,您可以找到新工具。
    Just add a keyboard shortcut. 只需添加键盘快捷键即可。 eg F10 例如F10

Thats it. 而已。

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

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