如何在 Mac OS 10.13+ 和 Xcode 9+ 上打开 FileMerge.app?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/47563666/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 10:27:24  来源:igfitidea点击:

How do I open FileMerge.app on Mac OS 10.13+ and Xcode 9+?

xcodemacosfilemerge

提问by Chris Williams

I see FileMerge in the Xcode app bundle:

我在 Xcode 应用程序包中看到 FileMerge:

/Applications/Xcode.app/Contents/Applications/FileMerge.app

I know I can open it on the command line using:

我知道我可以使用以下命令在命令行上打开它:

open /Applications/Xcode.app/Contents/Applications/FileMerge.app

But there seems like there should be an easier way. How can I tell Spotlight about FileMerge so I can open it with the keyboard? Is there another way to launch it without having to use the command-line?

但似乎应该有更简单的方法。我如何将 FileMerge 告知 Spotlight,以便我可以用键盘打开它?是否有另一种无需使用命令行即​​可启动它的方法?

回答by muchavie

Symbolic links also work.

符号链接也有效。

% cd /Applications

% cd /应用程序

% ln -s Xcode.app/Contents/Applications/FileMerge.app/ .

% ln -s Xcode.app/Contents/Applications/FileMerge.app/。

回答by JW.

Put an alias into the Applications folder. Spotlight and Launchpad will find it.

将别名放入 Applications 文件夹。Spotlight 和 Launchpad 会找到它。

回答by Matt Joiner

I had to do xcode-select -s /Applications/Xcode.app/Contents/Developerin order to have opendiffbe accessible (required for SourceTree).

我必须这样做xcode-select -s /Applications/Xcode.app/Contents/Developer才能opendiff访问(SourceTree 需要)。

回答by Rodrigo

On MacOS Catalina, you just need to open spotlight (cmd+space) and type "FileMerge".

在 MacOS Catalina 上,您只需要打开 Spotlight(cmd+space)并输入“FileMerge”。

回答by Hola Soy Edu Feliz Navidad

The easiest way I found was open -a FileMerge

我发现的最简单的方法是 open -a FileMerge