Home Download Buy Blog Forum Support

Newline in a snippet without auto-indenting?

Newline in a snippet without auto-indenting?

Postby natecavanaugh on Mon Nov 21, 2011 6:29 am

Hi all,
I'm curious if anyone know if there's a way to insert a snippet that contains multiple newlines while being able to remove the auto indenting from new lines (but still indenting tabs to the correct level)?

I'll give an example. I have a javascript snippet that inserts the following code:

Code: Select all
${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}: function(${1:args}) {
   var instance = this;


var instance = this; and $0 should both be indented to the correct level, but what happens for me is that the empty line gets tab characters in it that I have to manually remove.

Is there a way to disable this?

Thanks in advance,
Posts: 13
Joined: Fri Sep 09, 2011 6:50 am

Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 28 guests