Hello,
I notice the objective-C snippet called "method" (invoked with control-shift-m) is producing 3 spaces as indent before the "return nil;" statement. I check the snippet in the bundle editor and see it is indeed a tab in the code. What might be causing the output of the snippet to become three spaces in the objective c file? My soft tabs are set for 4 spaces. Thank you for any advice.
Cheers, -az
snippet code pasted here for convenience: - (${1:id})${2:${TM_SELECTED_TEXT:method}}${3::(${4:id})${5:${4/(NS([AEIOQUY])?(\w+).*)|(.)?.*/(?1:a(?2:n$2)$3:(?4:anArgument))/}}} {$0${1/^(void|IBAction)$|(.*)/(?2: return nil;)/} }
On 20 Dec 2007, at 22:07, Artie Ziff wrote:
I notice the objective-C snippet called "method" (invoked with control-shift-m) is producing 3 spaces as indent before the "return nil;" statement. I check the snippet in the bundle editor and see it is indeed a tab in the code. What might be causing the output of the snippet to become three spaces in the objective c file? My soft tabs are set for 4 spaces. Thank you for any advice.
This is a present limitation of the snippet system, for snippet mirror transformations, it might not always convert tabs to the right amount of spaces, when the user has enabled soft tabs.
For now the workaround is to just replace the tab with four spaces.