Textmate, automatically closing indentation when closing html tag

I love Textmate, but it's a little weirdness that always bothered me.

I am currently using version 1.5.10.

I use Command + Option + Dotto close the html tag, but when I do the result, this.

<html>
  </html>

I want Textmate to know how to do this. Deindexes are automatically added when closing a tag.

<html>
</html>

This works well for Ruby code. Textmate padding as you type end.

+3
source share
1 answer

The command Insert Close Tag (⌘⌥.)in TextMate (along with any other command in the Bundles menu) is fully customizable with Bundle Editor.

Bundle Editor (Bundles > Bundle Editor > Show Bundle Editor (⌃⌘⌥B)) " " , .

, ( ):

else
    print "</#{stack.pop}>"
end

, :

else
    print "</#{stack.pop}>"
    %x{ osascript -e 'tell application "System Events" to key code 33 using command' }
end

TextMate, Shift Left, ⌘[ - , .

+2

All Articles