Xcode:如何向上和向下翻页以移动光标?

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

Xcode: How to get page up and page down to move cursor?

xcode

提问by foreyez

This is a mac thing (because text edit does the same) but I just want to change this in xcode.

这是一个 mac 的东西(因为文本编辑做同样的事情)但我只想在 xcode 中改变它。

I'd like the cursor to move when I hit the page-up and page-down button. Kind of like the way windows or linux work. I know I can hold down the "option" button and then go page-up, page-down and it works
- but I don't want to hold the option button.

当我点击向上翻页和向下翻页按钮时,我希望光标移动。有点像 windows 或 linux 的工作方式。我知道我可以按住“选项”按钮,然后向上翻页,向下翻页,它可以工作
- 但我不想按住选项按钮。

I tried fiddling around with key bindings in xcode but couldn't get it, anyone know how?

我试着摆弄 xcode 中的键绑定,但无法得到它,有人知道怎么做吗?

回答by colin lamarre

In preferences, go to key bindings, type "page" in the search box, look for Page Down (Selection) / Page Up (Selection), click there and hit your pgdn/pgup keys.

在首选项中,转到键绑定,在搜索框中键入“page”,查找 Page Down(选择)/Page Up(选择),单击那里并点击您的 pgdn/pgup 键。

Delete the pgdn/pgup keys from Scroll Page Up/Down.

从 Scroll Page Up/Down 中删除 pgdn/pgup 键。

回答by Luca Davanzo

Whit Xcode 6.1(and >) is quite different, but similar to Colin's answer.

Whit Xcode 6.1(和>)完全不同,但与 Colin 的回答相似。

Xcode > Preferences > Key Bindings

Search for "Move Page Up": by default it's bindend with Alt+PgUp

搜索“Move Page Up”:默认情况下它是绑定的Alt+PgUp

You can change your binding simply with PgUp.

您可以简单地使用PgUp.

There may be conflicts, resolve it is suggested.

可能有冲突,建议解决。

Than repeat the same for "Move Page Down".

"Move Page Down"重复相同的操作。

回答by martin's

Install KeyRemap4MacBookand life will be good. If you have a PC/Mac/Linux environment the MacOS keyboard inconsistencies can be a real pain. We have all of our Macs setup to work as PC keyboards work. Now switching from one system to the other several times a day is not a problem.

安装KeyRemap4MacBook,生活就会好起来。如果您有 PC/Mac/Linux 环境,MacOS 键盘的不一致可能会很痛苦。我们所有的 Mac 都设置为可以像 PC 键盘一样工作。现在每天从一个系统切换到另一个系统几次都不是问题。