MacrosReBrings simple, powerful custom macros support to VS Code. Made with <3 by geddski. Forked and reedited by l7ssha. Applied pull request from AlteredConstants which provides delay ability. See also Level up your Coding with Macros Create Custom MacrosCreate your own custom macros by adding them to your For example:
This macro creates a copy of the current line, comments out the original line, and moves the cursor down to the copy. Your macros can run any built-in VS Code action, and even actions from other extensions.
To see all the names of possible actions VS Code can run, see Give your macros names that briefly describe what they do. Execute macroExecute your macro using Add Keybindings to Run your Macrosin
Notice that Passing Arguments to CommandsMany commands accept arguments, like the "type" command which lets you insert text into the editor. For these cases use an object instead of a string when specifying the command to call in your
Executing Snippets as part of a MacroMacros can also execute any of your snippets which is super neat. Just insert the same text that you would normally type for the snippet, followed by the
Known IssuesDoesn't currently add macros to command pallete ~~(have to use keybindings)~~ (Now you can use command, you don't have to specify keybind). |