XCode Simulator:如何更改其快捷方式? [英] XCode Simulator: how to change its shortcuts?
问题描述
在XCode中运行模拟器时,默认的旋转快捷方式为Cmd + Left和Cmd + Right.
When the simulator in XCode is running, the default shortcuts for rotation are Cmd+Left and Cmd+Right.
有什么办法可以改变它们?例如,将其更改为Ctrl + Left& Ctrl + Right?
Is there any way to change them? For example, change them to Ctrl+Left & Ctrl+Right?
推荐答案
我能够通过执行以下操作来更改Simulator的快捷方式:
I was able to change Simulator shortcuts by doing the following:
- 打开模拟器
- 右键单击任务栏中的图标
- 选择选项>在Finder中显示
- 将Simulator.app复制到您的/Applications目录
在这一点上,您将无法从/Applications目录运行Simulator.app,但是可以,我们将在此处使用它来设置快捷方式.为此,请按照您将要更改任何其他应用程序快捷方式的步骤进行操作:
At this point, you won't be able to run Simulator.app from the /Applications directory, but that's ok, we're just going to use it there for setting the shortcut(s). To do that, follow the steps you would to change any other app's shortcuts:
- 系统偏好设置>键盘>快捷方式
- 应用程序快捷方式>添加[+]
- 从列表中选择Simulator.app(除非我们已经完成上述步骤,否则不会显示.)
- 菜单项和快捷方式的确切名称.
- 添加
现在,继续从/Applications中删除Simulator.app.快捷方式仍然可以更改,并且此应用将从现在开始列出.
Now go ahead and delete Simulator.app from /Applications. The shortcut will still be changeable and the app will be listed from now on.
这篇关于XCode Simulator:如何更改其快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!