Sublime Forum

How to set shortcut for macro in Sublime 3

#1

I can not find macro file *.sublime-macro in folder install, so i can’t assign shortcut for my macro, pls help me

0 Likes

#2

What kind of *.sublime.macro file? Did you create it using the “Record Macro” feature? I think you need to select “Save Macro” in that case but I never used that feature myself.

0 Likes

#3

Yes, I was saved macro
http://tongkienphi.com/upload/tongkienphi/sublim.png

I found this topic to assign shortcut for macro http://superuser.com/questions/609057/how-do-i-assign-a-keyboard-shortcut-to-recorded-macro-in-sublime-text
but in the Sublime 3 i can not find *.sublime-macro of my macro

0 Likes

#4

It saves macros by default in the folder %appdata%\Sublime Text 2\Packages\User (which translates to Data/Packages/User in ST teminilogy, see docs.sublimetext.info/en/sublime … -directory). You can alter the path if you need to.

When specifying the path to the macro in a command and as a parameter to run_macro_file, you have to use the relative path like above, but from the Data directory. That means: Packages/User/print_r.sublime-macro.

0 Likes