Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7987443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:09:03+00:00 2026-06-04T12:09:03+00:00

I love Textmate, but this is a small oddity that always bothered me. I

  • 0

I love Textmate, but this is a small oddity that always bothered me.

I am currently using Version 1.5.10.

I use Command + Option + Dot to close a html tag, but when I do the result is this.

<html>
  </html>

I wish Textmate knew how to do this instead. Automatically de-indents when closing tag is added.

<html>
</html>

This works well for Ruby code by the way. Textmate de-indents when end is typed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:09:05+00:00Added an answer on June 4, 2026 at 12:09 pm

    The Insert Close Tag (⌘⌥.) command in TextMate (along with every other command in the Bundles menu) is completely customisable through the Bundle Editor.

    If you open up the Bundle Editor ( Bundles > Bundle Editor > Show Bundle Editor (⌃⌘⌥B)), and find the ‘Insert Close Tag’ command in the list on the left, you should be able to view and edit the code in that command.

    To implement your un-indenting functionality, find this chunk of code (at the end of the file):

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

    And modify it so that it looks like this:

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

    This extra line of code tells TextMate that after inserting the closing tag, it should perform the Shift Left command, by simulating the a press of the key combination ⌘[ – thus un-indenting your code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I love LINQ to SQL but it has been bugging me that in using
I currently use TextMate for Ruby/Javascript/Actionscript development and it is amazing. But one thing
I love using the TODO list in TextMate but I've been having issues of
Love TextMate, love Python, blah, blah, blah .. But.. i hate that Docstrings, aka
I love Ruby and its framework, but I don't think that Ruby On Rails
I love using GDB withing emacs. And I most like the configuration that I
I love Eclipse's quickfixes. I use the assign parameter to new field often, but
I've used Textmate for a couple of years, but for Objective-C I'm finding that
Love this website! My issue is as follows: I'm reading a zip file that's
I love Bootstrap but one annoyance that I can't seem to get my hands

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.