How to create your own hotkeys for any program on macOS
"Hotkeys" in the macOS operating system help many s to simplify their work not only with the system in general, but also when working with the Safari browser, text editors, the recycle bin, the Finder and other programs. We recently talked to you about Cheat Sheet, a utility that allows you to identify the keyboard shortcuts used in a certain application on your computer.
♥ ON-TOPIC: Safari no longer s insecure extensions on macOS: How to avoid the bug.
But what to do if a specific application doesn't have the proper hotkeys for a certain function? In this article, we will show you how to create your own shortcuts for any program in macOS.
As an illustrative example, here is a standard image editing application View. In the newsroom we have to use this program very often to prepare the images.
Unfortunately, in Viewfinder There are no default hotkeys for the functions we use frequently Export и Resize.
Function Export helps to save the images in the desired format, and Resize. - Change the size of them.
To perform these actions, you have to open the menu Archive и Tools and select the desired option there. This is not very convenient.
♥ ON-TOPIC: Mac for Dummies: 30 Useful Tips on macOS for Beginners.
How to create custom hotkeys for any program on macOS
To add a new keyboard shortcut, there are a few simple steps to follow.
1. Open the context menu of the program and find the option to which you want to assign a shortcut. In our example it is the menu Archive and option. Export ....
2. Open System settings, navigate to the route: Keyboard → Key combination. In the window that appears, select Program key combinations and click "+".
3. In the menu that opens, select the desired program. Then enter the name of the command to which you want to assign the shortcut (it must be written in the same way as in the program itself, for example, in Viewfinder Options Export и Customize size are indicated with an ellipsis «...» (that's why), this is how we specify - To export… и Set the size of ...).
The last step is to assign a keyboard shortcut to an action in the program. In our example, we assign the shortcut ⌘Cmd + D for command To export… и ⌘Cmd + E - for option Set size….
If you have done everything correctly, from now on the program's context menu will show the hotkeys that you have configured.
With this method you can also remap the standard hotkeys.