问题
When the simulator in XCode is running, the default shortcuts for rotation are Cmd+Left and Cmd+Right.
Is there any way to change them? For example, change them to Ctrl+Left & Ctrl+Right?
回答1:
I was able to change Simulator shortcuts by doing the following:
- Open Simulator
- Right click the icon in the tray
- Select Options > Show in Finder
- Copy Simulator.app to your /Applications directory
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:
- System Preferences > Keyboard > Shortcuts
- App Shortcuts > add [+]
- Select the Simulator.app from the list (wouldn't appear unless we had already completed the steps above.)
- Exact name of Menu item and shortcut.
- Add
Now go ahead and delete Simulator.app from /Applications. The shortcut will still be changeable and the app will be listed from now on.
来源:https://stackoverflow.com/questions/34259578/xcode-simulator-how-to-change-its-shortcuts