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.
@ttscoff
Hi man, thanks for your version of the key binding.
Just one question - how should I adjust it to have it working in the html files as well as ? (even outside the
<script><script>
block)?I've tried several variants, but haven't succeed.
Regards,