How to use macros in Sublime Text

藏色散人
Release: 2020-10-21 11:00:34
Original
6804 people have browsed it

How to use macros in Sublime Text: 1. To record a macro, use the shortcut key [Ctrl Q] to record a macro in Windows; 2. To play a macro, use the shortcut key [Ctrl Shift Q] on Windows; 3. , save macro, use the tool to select the save macro option, and save the recorded macro.

How to use macros in Sublime Text

This article mainly introduces what macros in Sublime Text are and how to use them (recording, playback, saving).

Macros are basic automation tools that contain a series of commands. You can use macros whenever you need to perform an action that contains the same steps.

Macro files are JSON files with the extension .sublime-micro and are considered very useful.

Recording Macro

Recording a macro defines the process of saving a given file with a set of commands. You can record macros in two ways - use the shortcut Ctrl Q to record macros in Windows and Cmd Q in Mac.

Use the recording option in Tools → Record Macro.

How to use macros in Sublime TextOnce the macro starts recording, you can see the following message in the Sublime Text editor -

How to use macros in Sublime Text

Playing MacrosYou can use the shortcut keys Ctrl Shift Q on Windows and Cmd Shift Q on Mac to play macros recorded by users in Sublime Text. Note that this shortcut plays the last recorded macro in Sublime.

Save MacroYou can save a recorded macro using the Tools → Save Macro option. The following screenshot shows how to save a macro using this option.

How to use macros in Sublime TextYou can also redefine the macro using the various options in the Tools menu bar as shown below -

How to use macros in Sublime TextThis article is a basic introduction to macros in Sublime Text. It has certain reference value. I hope it will be helpful to friends in need!

The above is the detailed content of How to use macros in Sublime Text. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!