Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
output console.log() shortcut in Sublime Text
[
{ "args": {"to": "word"}, "command": "expand_selection" },
{ "args": null, "command": "copy" },
{ "args": { "to": "eol" }, "command": "move_to" },
{ "args": { "characters": "\n" }, "command": "insert" },
{ "args": { "characters": "console.log('" }, "command": "insert" },
{ "args": null, "command": "paste" },
{ "args": { "characters": ": ', " }, "command": "insert" },
{ "args": null, "command": "paste" },
{ "args": { "characters": ");" }, "command": "insert" }
]
@112KA

This comment has been minimized.

Copy link
Owner Author

112KA commented Nov 23, 2017

Save this file 'C:\Users[username]\AppData\Roaming\Sublime Text 2\Packages\User'.
And add following to .sublime-keymap.

{ "keys": ["f5"], "command": "run_macro_file", "args": {"file": "Packages/User/console_log.sublime-macro"} }

@nicolas-t

This comment has been minimized.

Copy link

nicolas-t commented Feb 21, 2018

🔥

@crimsonsoccer55

This comment has been minimized.

Copy link

crimsonsoccer55 commented May 19, 2018

So sick man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.