Macros are the basic automation facility that includes a sequence of commands. You can use macros whenever you need to perform an operation which includes same steps.
Macro files are JSON files with an extension called .sublime-micro and are considered to be very helpful.
Recording a Macro
Recording a macro defines the procedure to keep a set of commands needed for the given file. You can record a macro in two ways −
Use the shortcut key Ctrl+Q for recording a macro in Windows and Cmd+Q in Mac.
Use the record option in Tools → Record Macro.
Playing a Macro
You can use the shortcut key Ctrl+Shift+Q on Windows and Cmd+Shift+Q for Mac, to play a macro recorded by the user in Sublime Text. Note that this shortcut plays the last recorded macro in Sublime.
Saving a Macro
You can save a recorded macro using the option Tools → Save Macro. The following screenshot shows how to save a macro using this option.
Table of Contents
1.sublime text tutorial
2.sublime text introduction
3.sublime text installation
4.sublime text data directory
5.sublime text creating first document
6.sublime text editing first text document
7.sublime text patterns of code editing
8.sublime text sublime linter
9.sublime text shortcuts
10.sublime text snippets
11.sublime text macros
12.sublime text key bindings
13.sublime text column selection
14.sublime text indentation
15.sublime text base settings
16.sublime text theme management
17.sublime text understanding vintage mode
18.sublime text vintage commands
20.sublime text testing python code
21.sublime text spell check
22.sublime text packages
23.sublime text menus
24.sublime text sub menus of font
25.sublime text developing plugin
26.sublime text command palette
27.sublime text debugging php application
29.sublime text batch processing
30.sublime text distraction free mode
31.sublime text sublimecodeintel plugin
32.sublime text quick guide
33.sublime text useful resources
34.discuss sublime text