How can I type console.log('') or Ti.API.info('') in titanium by hitting single key

1.3k views Asked by At

I am tired of writing console.log('') or TI.API.info('') many times in my code and then deleting it several time.

Is there a setting in Titanium where I can hit a shortcut key like Alt + C or something and this writes the console statement in my code snippet.

Thanks in advance.

1

There are 1 answers

0
Swanand On

write inf and then press Control + space bar it will print Ti.API.info('').

and pressing cmd + d will delete the current line.

for more please see Link1, Link2, Link3