[TxMt] Re: Next line indentation

kartik.thapar kt.kthapar at gmail.com
Tue Dec 7 12:55:05 UTC 2010


Hi,

Thanks a lot for the reply. But I cannot do so. Can we work out the same
with the return key? My return/enter key shows ⏎ sign.

Any ideas?


Sean Dunn wrote:
> 
> Have you tried using enter in prefference to return?
> 
> I think this depends on the bundle you're useing but using enter (⌅),
> which
> is fn-return(⏎) on my Macbook Pro will insert a new line with same
> indenting
> as the current line.  In the ruby bundle this will also continue comments
> and other things.
> 
> Cheers,
> Sean.
> 
> 
> kartik.thapar wrote:
>> 
>> I am new to textmate. I absolutely don't require indentation rules when
>> using if/switch/case, etc.
>> 
>> I want a very simple indentation rule which makes the next lines's indent
>> same as previous line's indent.
>> 
>> for eg.
>> 
>> sub foo
>> { <- 0 indent
>>   my $str = "string"; <- manual indent
>>   # <- auto indent (*)
>> } <- manual indent
>> 
>> I am looking for auto indent as described above. Any one know how to do
>> this?
>> 
> 

-- 
View this message in context: http://old.nabble.com/Next-line-indentation-tp30308903p30396022.html
Sent from the textmate users mailing list archive at Nabble.com.



More information about the textmate mailing list