matthew ephraim

Align Assignments in TextMate

This is a cool feature that I didn’t realize TextMate had until today. Say you have a series of assigmnents like this:

var administrator = "Dave";
var guest = "Matt";
var blocked = "Tim";

And you want to have all of the assignments aligned. Select the code and hit Apple + Option + ]. It will automatically align the statements like this:

var administrator = "Dave";
var guest         = "Matt";
var blocked       = "Tim";

I love you TextMate.

2 Responses to “Align Assignments in TextMate”

  1. Jason Says:

    This just encourages people to be lazy you should be doing that anyways.

  2. Jason Says:

    vi4ever

Leave a Reply