Is it possible to change the tab-completion on "log" from showModalDialog() to something else?

I've been looking around for this on and off for the past few months - I'd love to chance tab completion on "log" in JavaScript/Coffeescript from showModalDialog() to either console.log or an in-house logging function that we use.

2 comments
Comment actions Permalink

I have a Live Template defined for console.log(), with 'log' set as abbreviation. When I
type 'log' and hit Tab, I get 'console.log()' in editor (see attached screenshot). Does it work for you?log.png


Template settings:
template.png

0
Comment actions Permalink

This looks like it will work great. Thanks!

0

Please sign in to leave a comment.