-
Notifications
You must be signed in to change notification settings - Fork 29.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to create simple macros #15091
Comments
Saw that one. Thank you @geddski, will test it out. |
cool. Feedback welcome |
@geddski I installed your extension for vs code. What I want is when I pressed "alt+1", "console.log();" will be typed in editor. I have that custom macro in sublime and I dont know how to recreate that using this extension. |
@alexcoroza first create a JS snippet, I have one for console.log: {
"Print object to console": {
"prefix": "con",
"body": [
"console.log('$1', $1);$0"
],
"description": "console.log an object"
}
} And then in your macro execute that snippet: "macros": {
"log": [
{"command": "type", "args": {"text": "con"}},
"insertSnippet"
]
} And finally add a keybinding to run your macro: {
"key": "alt+f1",
"command": "macros.log"
}, |
It would be nice to be able to create some kind of simple "macros" which initially could be only a set of commands running together on a specified keyboard shortcut.
Example: F5 - Start Debug
The text was updated successfully, but these errors were encountered: