User can set or reassign shortcut keys for commands in Typora’s menu bar. This article will show how to customize Typora’s key binding.
We use macOS’s system feature to customize Typora’s key binding on macOS.
System Preference →
Keyboard, select tab
App Shortcuts in its left panel.
Click the “+” button, a dialog sheet would pop up. Select “Typora.app” from field
Application, then input the exact name of the menu command you want to add, and then input the shortcut key you want to assign.
For example, assume you want to add/change the shortcut key to pin Typora’s window, you could fill the dialog like following:
Command+Shift+P will be the shortcut key for menu command “always On Top”
(Requires Typora ≥ v0.9.16)
Preference in Typora, then click “Open Advanced Settings”.
Open and edit
conf.user.json from opened “File Explore”. If there’s no such file, create one.
Set or add JSON object which represents a key binding, for example:
Restart Typora, and the new key binding will be applied.
You could set or change shortcut keys for menu items in menu bar in native window style.