Can I create key binding for my snippet in Geany?

Viewed 148

I created a snippet in Geany. Can I bind a key for this snippet?

For example, binding Ctrl + B to the snippet bf=\\textbf{%cursor%}.

I knew key binding from menu EditPreferencesKeybindings. But it just allows binding a key to the listed functions.

1 Answers

Using the [Keybindings] part in file snippets.conf.

Attention: these keybindings can be overridden by Geany's configurable keybindings, i.e. keybindings from menu EditPreferencesKeybindings.

In the case you want using this way to create a keyboard shortcut for a snippet, but it is already in the Geany's configurable keybindings, you need to change this keyboard shortcut in the Geany's configurable keybindings.

Related