Go to Sublime Text 2 > Preferences > Key Bindings - User
and add this JSON to the file:
[
{ "keys": ["super+shift+l"],
"command": "insert_snippet",
"args": {
"contents": "console.log(${1:}$SELECTION);${0}"
}
}
]
Inserts a console.log()
at the current cursor position, tab once to jump past.
where can i find the documentation for defining the
args
? how can i know about${1:}
?$SELECTION
?${0}
? been googling and found the official documentation here http://sublime-text-unofficial-documentation.readthedocs.org/en/latest/customization/key_bindings.html but didn't find the answer :(