Set TextWrangler to Always Display Line Numbers

May 8, 2011 - 9 Comments

Show Line Numbers in TextWrangler

Want to always show line numbers in TextWrangler documents? Of course you do! Pull down the Edit menu and scroll to “Text Options” where you’ll see the preference panel that lets you set line numbers to be displayed with a checkbox. Alternatively, you can hit Command+Option+, from within the app to bring up the view settings.

TextWrangler is without a doubt the best free text editor for Mac OS X (if you don’t have it yet, you can get it free from BareBones), but why isn’t this enabled by default? This drove me absolutely nuts and I’m probably not the only one, thankfully it’s a simple fix once you find the setting.

Update: Some users seem to be having an issue with getting line numbers to persist after quitting TextWrangler. I can’t reproduce that problem, but apparently another option is to go to Preferences > Text Status Display and check the “Show line numbers” check box there too. I also just discovered that we covered exactly that here before, so that could be a solution if they keep disappearing after relaunch.

Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox! Enter your email address below:

Related articles:

Posted by: Matt Chan in Mac OS X, Tips & Tricks

9 Comments

» Comments RSS Feed

  1. Marc says:

    Also available in the Mac App Sore.

  2. apprentice says:

    It is a good idea to “trim trailing white-space character”. You can do this by setting “Preferences / Text Files / Strip trailing whitespace”.

  3. Ketchup and mustard says:

    TextWrangler rocks, the only thing better than it is it’s big brother BBEdit but for the price of free, TW can’t be beat.

  4. Tyler says:

    I changed it and it works, but when I shut down and re-open it defaults back to no numbers:(

  5. Bink of Boldhome says:

    It doesn’t have Vi/Vim key bindings so it’s just as useless as all of the other so-called Mac editors (e.g. SubEthaEdit, Coda, BBEdit, XCode).

  6. Theo says:

    I use BBEdit at work and come home to TextWrangler, both are the best!

  7. apprentice says:

    If you use “Text Options…” to display line number, this change will not be persistent. When you close the document and open another document, line number will be gone. To make it persistent, try this:

    “Preferences / Text Status Display / Show line numbers”.

    Good luck. :D

  8. I just come over to osxdaily (I usually read the feeds) to say a big thank you for this, but then I read the comment of a guy stating that this trick is not permanent and so I checked to see if in my case it worked or not. Unfortunately it didn’t… :( So sad…

    Note that I checked to have just one window open (just to make sure one didn’t overwrite other’s settings), but that didn’t do the trick. Is there any xml/plist file to edit? I use textwrangler for work everyday and it’s really annoying doing that manually each time for debugging.
    Also, line numbers tend to be not aligned with actual text lines. After – let’s say – 300 lines text happens to be 4 lines above of the line number. Weird. o.O

Leave a Reply

 

Shop for Apple & Mac Deals on Amazon.com

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates