Sublime Forum

Keybind for console.log snippet with variable?

#1

Hi all,

I would like to create a keybind that would format a snippet preformated with the variable or string the caret is in.

IE:

var rando|mvar

would create the following snippet when keybing is triggered:

console.log("randomvar: " + randomvar);

Can that be done?

Thanks!

0 Likes