Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I let TextMate show line numbers when I'm coding C++?

share|improve this question

2 Answers 2

up vote 27 down vote accepted

Press Cmd-Opt-L or select View » Gutter » Line Numbers.

I don't think it's possible to automatically enable display of line numbers dependent on your current language. But with the default keyboard shortcut this command is easy enough to reach.

share|improve this answer
While I certainly appreciate all the up votes for this answer, I'd like to use the popularity of this question to demonstrate how convenient it is to find menu items and commands in pretty much any OS X application. –  Daniel Beck Sep 7 '12 at 20:01

View->Gutter->Line Numbers

Enjoy! Its a fun editor.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.