views:

647

answers:

2

How can I permanently have line numbers in IntelliJ?

+11  A: 

This should work:

  • Select Tools | IDE Options
  • Select Editor
  • In the Display group, click Show line numbers
  • When you're finished here, click OK

attributed to: http://www.devdaily.com/blog/post/intellij/displaying-line-numbers/

Craig
For how old version of IDEA is that? I don't remember ever seeing "Tools | IDE Options", and I've used it since IDEA 5. In IDEA 7 and 8 the "Editor" is under "File | Settings".
Esko Luontola
+2  A: 

In IntelliJ 8.1.2 this option has moved. It's now in File | Settings. Within the "IDE Settings" section of that dialog, you'll find it under Editor | Appearance.

Don