Saturday, May 26, 2007

TextMate: Required Reading

If you spend much time developing in TextMate I'd highly suggest picking up the TextMate book. I've gotten through about 25% so far and already picked up several things what will make me more efficient.

Here's a quick tip to entice you: Reformat a file
- Command + A (Select All)
- Alt + Command + [ (Reindent Selected)

5 comments:

  1. I'd like to know how to do that with a Spanish keyboard (where the "[" key is in another location)... anyone know how to do that? Pressing those keys on a Spanish keyboard just moves the selected text to the left.

    ReplyDelete
  2. Anonymous6:13 PM

    Hello Wincent,

    Command + [ is the combination to indent left, so it seems you are losing the Alt key somehow.

    I set my keyboard to Spanish to try to reproduce the issue and I have a guess as to what the issue is.

    For me, I have to press Alt + ` to create a [ character. And, since Alt + ` is creating the [ character, Textmate not registering the Alt keypress as part of the Command + Alt + [ combination.

    Unfortunately, I don't have enough experience with other keyboard layouts to know where to go next, but maybe with that info you can find the next step. If you do, please drop another line so the rest of us will know.

    Cheers, Jay

    ReplyDelete
  3. Hi Jay,

    First of all, instead of Control + A, you may want to say Command + A. Control + A in TextMate does nothing.

    Second, I had to delete my previous post to correct it. I use a Portuguese keyboard, so I have the same problem that Wincent. Here I have to press Alt + 9 to get an ], so I lose the Alt key getting the ] like you said. If I figure out how getting around it, I'll drop a line here.

    Cheers,
    '-' JPedroso

    ReplyDelete
  4. Anonymous11:29 PM

    Hello JPedroso,

    Thanks for the correction, the entry has been updated.

    Cheers, Jay

    ReplyDelete
  5. Anonymous12:32 PM

    I'm pretty sure that Wincent and any other spanish keyboard users will find useful the happycoder project. Ale Muñoz has created a new keyboard layout which solves that problems with "[", "{", etc

    ReplyDelete

Note: Only a member of this blog may post a comment.