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?