38

Does anybody know how I can enable line numbers for Ruby (and Ruby on Rails as well) projects?

3 Answers 3

79

This setting is located in File | Settings (Preferences on Mac) | Editor | Appearance | Show line numbers:

show line numbers

5
  • 5
    In Rubymine 4.5.4 its through View -> Acitve Editor -> View line numbers Commented Dec 24, 2012 at 7:21
  • 1
    @boddhisattva, no, the setting you mention works only for the active editor, while the setting from my answer is global and will affect all editor tabs permanently.
    – CrazyCoder
    Commented Dec 24, 2012 at 7:24
  • @CrazyCoder In that case, can you pls tell me where can I find the Editor option in the Rubymine IDE(I am new to Rubymine.. ).. ? I can see an 'Edit' option but no Editor option in the main tab options.. Commented Dec 24, 2012 at 8:54
  • 5
    @boddhisattva, File | Settings | Editor | Appearance.
    – CrazyCoder
    Commented Dec 24, 2012 at 9:03
  • 3
    This may have been moved to File | Settings | Editor | General | Appearance in RubyMine 7 (Linux).
    – complistic
    Commented May 13, 2015 at 5:22
8

On Rubymine 7.1, using a Mac, I found it under:

  • Preferences --> Editor --> General --> Appearance

Near the top is a Show line numbers checkbox. See illustration.

Illustration of the Preference in Mac OS X

0
0

On RubyMine 6.3 I used File->Settings...->Editor->Appearance and checked the box "Show line numbers" to enable them.

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