How can I permanently enable line numbers in IntelliJ?
How can I permanently enable line numbers in IntelliJ IDEA?
Solution 1:
IntelliJ 14.X Onwards
From version 14.0 onwards, the path to the setting dialog is slightly different, a General submenu has been added between Editor and Appearance as shown below
IntelliJ 8.1.2 - 13.X
From IntelliJ 8.1.2 onwards, this option is in File | Settings1. Within the IDE Settings section of that dialog, you'll find it under Editor | Appearance.
- On a Mac, these are named IntelliJ IDEA | Preferences...
Solution 2:
The question is obviously well answered already, but since IJ 13 you can enable line numbers in 2 seconds flat:
- Press shift twice
- Type "line number"
- The option shows in the menu and press enter to enable/disable.
Et voila ;)
Solution 3:
NOT a solution, rather a TEMPORARY solution which only works only for the current editor and current session:
Simply right click on the place where the line-numbers should be, and there you'll see a small menu.
then, mark the "Show Line Numbers" option.
Please note that this only works on a per-file basis, however. Enjoy.