Keybinding For PerlTidy Formatter

I have a formatter that runs the perltidy command. How can I run it using a keyboard command in place of selecting it from the menu?

To run it from the menus, I use Code->Format->Document using PerlTidy

I have tried recording a macro but the resulting userscript doesn’t run perltidy.

(I have had this working for years but . . . when I installed Komodo 12, I lost track of how I had done it in the past.)


Morning @mark,

You can set a keybinding for the Editor: Format Code or Text command in your prefs. Edit menu > Preferences > Key Bindings.

Setting a keybinding for that command should trigger your formatter as long as you have a Perl file open and you set the formatters language to Perl.