macros
macros copied to clipboard
is it possible for macros to take arguments?
If I'm calling a macro as a command from elsewhere, can I give it an args list?
Taken from https://marketplace.visualstudio.com/items?itemName=geddski.macros#overview
Passing Arguments to Commands Many 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 settings.json:
"macros": { "addSemicolon": [ "cursorEnd", {"command": "type", "args": {"text": ";"}} ] }
I can't get it to work with editor.action.indentUsingSpaces though...