Xcode Simulator: how to change its shortcuts?

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 and Ctrl + Right?

+5
source share
1 answer

I managed to change the simulator shortcuts by following these steps:

  • Open simulator
  • Right-click the tray icon
  • Select Options> Show in Finder.
  • Copy the file Simulator.app to the / Applications directory

At this point, you will not be able to run Simulator.app from the / Applications directory, but this is normal, we just use it there to set shortcuts (s). To do this, follow the instructions that you would like to change any other application shortcuts:

  • System Preferences> Keyboard> Shortcuts
  • Application Shortcuts> Add [+]
  • Select Simulator.app from the list (will not appear if we have not already completed the above steps.)
  • The exact name of the menu item and shortcut.
  • Add

Now go and remove Simulator.app from / Applications. The shortcut will still change, and the application will be displayed from now on.

+8
source

Source: https://habr.com/ru/post/1238055/


All Articles