How can I permanently enable line numbers in IntelliJ IDEA?
In IntelliJ 14 it has moved again somewhat down the menu.
Now we have it unter Editor -> General -> Appearance
Android Studio
Go to Android Studio => Preferences => Editor => General => Appearance => set Checked "Show line numbers"
1st way: Go to View => Active Editor => show line numbers
2nd way Go to Android Studio => Preferences => Editor=> Appearance => set Checked "Show Line Numbers"
I just hit this with IdeaVim plugin installed, where even if I set Show Line Numbers
, it continued to revert to hiding them.
The (forehead-slapping-worthy) solution was:
:set nu
For InteliJ IDEA 11.0 and above
Goto File --> Settings in the Settings window Editor --> Appearance
and tick Show line numbers check box.
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.