Xcode “Open with External Editor”

huangapple go评论42阅读模式
英文:

Xcode "Open with External Editor"

问题

当我在Xcode 14.2中右键单击文件并选择“使用外部编辑器”时,如何确定应调用哪个编辑器?对于我来说,Markdown编辑器总是启动,甚至对于Swift文件也是如此。在旧的提示中,它说您必须通过Finder设置适当的编辑器。但当我在Finder中双击打开Swift文件时,它可以正常工作...

英文:

How can I determine which editor should be called in Xcode 14.2 when I select "Open with External Editor" for a file with the right mouse button?
For me, a Markdown editor is always started, also for the Swift files.
In old tips it says you have to set the appropriate editor via the Finder. But when I open a Swift file with a double click in the Finder, it works ...

答案1

得分: 1

Xcode目前没有办法在选择“使用外部编辑器打开”时告诉您使用的是哪个编辑器。

Xcode用于打开文件的编辑器取决于文件类型。对于每种文件类型,您必须从Finder中设置要使用的默认编辑器。

  1. 在Finder中选择一个文件。
  2. 按下Cmd-I以打开文件的信息面板。
  3. 从“使用以下方式打开”菜单中选择一个文本编辑器。
  4. 单击“全部更改”按钮,以设置该类型的所有文件的默认编辑器。

设置默认编辑器后,在Xcode中选择“使用外部编辑器打开”将会在您指定的编辑器中打开文件。

英文:

Xcode currently doesn't have a way to let you know what editor when you choose Open with External Editor.

The editor Xcode uses to open the file depends on the file type. For each file type you must set the default editor to use from the Finder.

  1. Select a file in the Finder.
  2. Press Cmd-I to open the file's Info panel.
  3. Choose a text editor from the Open with menu.
  4. Click the Change All button to set the default editor for all files of that type.

Xcode “Open with External Editor”

After setting the default editor, choosing Open with External Editor in Xcode will open the file in the editor you specified.

huangapple
  • 本文由 发表于 2023年2月16日 01:57:05
  • 转载请务必保留本文链接:https://go.coder-hub.com/75463720.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定