How to Make a Key Binding in Sublime Text for a Macro You Wrote

When wanting to think faster, creating a macro is very useful, because you can perform many actions with less movement.

To create a key binding (keyboard shortcut) in Sublime Text 3 for a macro you wrote, add this to “Key Bindings – User”:

    { "keys": ["super+shift+k", "super+shift+l"], "command": "run_macro_file",
      "args": {"file": "Packages/User/macro.sublime-macro"}},

Set the “keys” to what you want the binding to be (you can find free keys by using a sequence), and “Packages/User/macro.sublime-macro” to the location of the macro file you wrote.

Hope this makes life more fun and interesting!

Leave a Reply

Your email address will not be published.