IntelliJ IDEA-将Finder中的Reveal显示更改为新的文件浏览器 [英] IntelliJ IDEA - Change Reveal In Finder to a new file browser

查看:61
本文介绍了IntelliJ IDEA-将Finder中的Reveal显示更改为新的文件浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将 Path Finder 设置为OSX Yosemite上的默认文件浏览器(管理器).因此,大多数应用程序在显示文件而不是IDEA时都会打开路径查找器"窗口.

当我在文件上选择 Finder中的显示操作时,它总是打开一个新的finder窗口,这很烦人,因为从Path Finder窗口复制到Finder窗口是行不通的./p>

有什么办法告诉IntelliJ IDEA使用路径查找器?

解决方案

您需要创建一个新的外部工具,然后将其添加到相关的上下文菜单中.

转到设置|工具|外部工具,然后单击 + 按钮创建一个新工具:

为您的工具设置一个名称,例如 Show in Thunar ,然后在程序部分,您必须插入可以打开已安装文件浏览器的命令.在我的情况下,我插入了thunar(确保通过终端确认命令).并且不要忘记将 $ FileDir $ 设置为 arguments .

创建工具后,您可以将其添加到上下文菜单中,为此,请转到 Appearance&行为|菜单和工具栏|项目视图弹出菜单>项目视图弹出菜单运行组>运行配置>RevealGroup

点击之后添加按钮,然后选择您在早期阶段创建的新外部工具.

I have set up Path Finder as my default file browser(manager) on my OSX Yosemite. So most applications open a Path Finder window when they show me a File, but not IDEA.

When I choose the Reveal in Finder action on a file it always opens a new finder window, which is kind of annoying because copying from a Path Finder window to a Finder window is not working.

Is there any way to tell IntelliJ IDEA to use Path Finder?

解决方案

You need to create a new external tool and then add it to the relevant context menu.

Go to Settings | Tools | External Tools and click the + button to create a new one:

Set a name for your tool like Show In Thunar and then in the program section, you must insert the command that can open the installed file explorer. In my case, I inserted thunar (make sure about the command via terminal). And do not forget to set $FileDir$ as the arguments.

After creating your tool you can add it to your context menu, for doing this go to Appearance & Behavior | Menus and Toolbars | Project View Popup Menu > Project View Popup Menu Run Group > Run Configurations > RevealGroup

Click the Add After button and select the new external tools that you have created in the early stage.

这篇关于IntelliJ IDEA-将Finder中的Reveal显示更改为新的文件浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆