Xcode 历史记录(后退/前进)键盘快捷键?

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

Xcode History (back/forward) Keyboard Shortcut?

xcodekeyboard-shortcuts

提问by Brent Faust

Back Arrow Broken In Xcode?

后退箭头在 Xcode 中断了?

Is there keyboard command to go back/forward one fileat a time.

是否有一次返回/前进一个文件的键盘命令。

Xcode 3.2 changed the behaviorof Cmd-Opt <-- and -->. As noted in another question, they do not operate on a file level like in previous versions of Xcode, but on an "edit point", making it cumbersome to flip through a list of files (the quick way to do it, since Xcode does not support Tabs, as in Eclipse).

Xcode 3.2更改了Cmd-Opt <-- 和 --> 的行为。正如在另一个问题中所指出的,它们不像以前版本的 Xcode 那样在文件级别上进行操作,而是在“编辑点”上进行操作,这使得翻阅文件列表变得很麻烦(这是一种快速的方法,因为 Xcode 不会不支持选项卡,如在 Eclipse 中)。

Rob Keniger found a partial solution that he noted in another post:

Rob Keniger 找到了他在另一篇文章中指出的部分解决方案:

"Hold down the option key while you click the forward/backward arrows ..."

“在单击向前/向后箭头时按住选项键......”

But this requires fiddling with the mouse. Is there any way to do it with the keyboard only?

但这需要摆弄鼠标。有没有办法键盘来做?

EDIT: Later versions of Xcode (v7.2+) now have a Navigate menu (and it changes the keyboard shortcuts yet again): enter image description here

编辑:更高版本的 Xcode (v7.2+) 现在有一个导航菜单(它再次更改了键盘快捷键):在此处输入图片说明

采纳答案by Rubski

Beginning in XCode 3.2.3, the following key sequence works:

从 XCode 3.2.3 开始,以下键序列有效:

Cmd+ Option+ Shift+

Cmd+ Option+ Shift+

Without the Shiftkey, it just goes back to the previous cursor position. Adding Shiftjumps to the previous file (next file, in combination with ).

如果没有Shift键,它只会返回到先前的光标位置。添加Shift跳转到上一个文件(下一个文件,结合)。

回答by Sebastian Juarez

In XCode 4.4 the following sequence works:

在 XCode 4.4 中,以下序列有效:

Cmd+ Ctrl+

Cmd+ Ctrl+

and it operates on a file level.

它在文件级别上运行。

回答by arsenik

On Xcode 8 I use 2 fingers left / right

在 Xcode 8 上,我左/右使用 2 个手指

回答by Wasim

Navigation shortcuts for Xcode enter image description here

Xcode 的导航快捷键 在此处输入图片说明