Xcode:是否可以“快速打开”助手编辑器的右侧窗格?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/32659794/
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 07:51:56  来源:igfitidea点击:

Xcode: Is it possible to 'Open Quickly' the right pane of the Assistant Editor?

xcode

提问by Sean Danzeiser

Is it possible to 'Open Quickly' in the right pane of the Assistant Editor? This would increase productivity by like 20x

是否可以在助理编辑器的右侧窗格中“快速打开”?这将使生产力提高大约 20 倍

回答by Guillaume Algis

Yes it's possible.

是的,这是可能的。

Use ? command+? shift+Oto open the "Open Quicky" input box, and then:

使用? command+ ? shift+ O,以打开“打开Quicky”输入框,然后输入:

  • Use ? option+Enterto open the file in the right editor ?.
  • Use ? option+Shift+Enterto select where you want to open the file using the arrow keys.
  • 使用? option+Enter在正确的编辑器中打开文件.
  • 使用? option+ Shift+Enter选择要打开使用箭头键的文件。


?Note that starting with Xcode 11, you can now split the editor as much as you want. This means ? option+Enterby default will behave differently and open the file in the editor next to where your cursor currently is.

? 请注意,从Xcode 11开始,您现在可以根据需要拆分编辑器。这意味着? option+Enter默认情况下会有所不同,并在编辑器中当前光标所在位置旁边打开文件。

This behavior is configurable in Xcode's Preferences, under Navigation:

此行为可在 Xcode 的首选项中的导航下进行配置:

Xcode Navigation Preferences

Xcode Navigation Preferences

回答by Iulian Onofrei

Make sure that Uses Focused Editoris selected in Preferences> Navigation:

确保Uses Focused EditorPreferences> 中选择Navigation

screenshot

screenshot

This way, you can open it by focusing the Assistant Editor, pressing ? command+? shift+Oto open the Open Quickyinput box, and just press Enterto open the selected file, instead of ? alt+Enter.

这样,您可以通过聚焦打开它Assistant Editor,按? command+ ? shift+O打开Open Quicky输入框,然后按Enter打开所选文件,而不是? alt+ Enter

回答by AnnawanDev

An even easier way is to hold down the Option key and then click on the file. That will bring open the chosen file in the Assistant Editor. This works great when you TDD your Swift :) You can have your tests on the left and option click on the implementation to open on the right.

更简单的方法是按住 Option 键,然后单击文件。这将在助理编辑器中打开所选文件。当您对 Swift 进行 TDD 时,这非常有效:) 您可以在左侧进行测试,然后选择单击实现以在右侧打开。

回答by tryKuldeepTanwar

Cool thing!

很酷的东西!

Just to extend the answer you can switch between more then two Tabs or open it new editor tab cool isn't it?

只是为了扩展答案,您可以在两个以上的选项卡之间切换或打开它新的编辑器选项卡很酷不是吗?

? Open multiple assistant editor .

? 打开多个助理编辑器。

? ? command+? shift+O.

? ? command+ ? shift+ O

? Hold ? optionand press Enteron the selected item.(Used to open any file in Assistant Editor)

? 按住? option,然后按Enter所选择的项目。(用于打开助理编辑的任何文件)

? You can also use ? option+? shift+Enterto toggle more and open new tab if you're not on stacked editor.

? 您还可以使用? option+ ? shift+Enter切换更加开放的新标签,如果你不上堆放编辑器。

? The multiple selection window will appear

? 将出现多选窗口

enter image description here

enter image description here

Note: Make sure you have all editor stacked selected

注意:确保您选择了所有编辑器堆叠

enter image description here

enter image description here

回答by chrismillah

EDIT: misread your question above answer is good, just make sure you click into that pane before trying those commands

编辑:误读您上面的问题答案很好,只需确保在尝试这些命令之前单击该窗格

Sounds like your looking for some hotkeys, check here for a full list

听起来您正在寻找一些热键,请在此处查看完整列表

  1. http://spin.atomicobject.com/2014/03/23/xcode-keyboard-shortcuts/
  2. http://iphonedev.tv/blog/2014/9/15/14-xcode-time-saving-shortcuts-memorize-and-improve-your-productivity
  3. http://nshipster.com/xcode-key-bindings-and-gestures/
  1. http://spin.atomicobject.com/2014/03/23/xcode-keyboard-shortcuts/
  2. http://iphonedev.tv/blog/2014/9/15/14-xcode-time-saving-shortcuts-memorize-and-improve-your-productivity
  3. http://nshipster.com/xcode-key-bindings-and-gestures/

but to open assistant editor use ? command + ? option + ? return

但要打开助理编辑器使用 ? command + ? option + ? return