1365
How can I permanently enable line numbers in IntelliJ IDEA?
This question is tagged with
intellij-idea
~ Asked on 2008-08-17 17:31:38
1399
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
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.
~ Answered on 2009-05-26 18:46:03
371
The question is obviously well answered already, but since IJ 13 you can enable line numbers in 2 seconds flat:
Et voila ;)
~ Answered on 2015-04-14 07:07:00
109
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.
~ Answered on 2011-11-25 08:54:12
93
In Intellij 13 the layout has changed, the Settings button can only be found in File -> Settings and not in the toolbars, and from there you follow the same steps: Editor -> Appearance -> Show line numbers, or search for Line numbers in the Settings search input.
~ Answered on 2013-10-10 19:21:11
75
Global configuration
File -> Settings -> Editor -> General -> Appearance -> Show line numbers
First way: View -> Active Editor -> Show Line Numbers (this option will only be available if you previously have clicked into a file of the active editor)
Second way: Right click on the small area between the project's structure and the active editor (that is, the one that you can set breakpoints) -> Show Line Numbers.
~ Answered on 2015-09-19 10:50:16
53
For InteliJ IDEA 11.0 and above
Goto File --> Settings in the Settings window Editor --> Appearance
and tick Show line numbers check box.
~ Answered on 2011-12-28 10:09:57
32
IntelliJ 14 (Ubuntu):
See: how-do-i-turn-on-line-numbers-permanently-in-intellij-14
Permanently:
File > Settings > Editor > General > Appearance > show line numbers
For current Editor:
View > Active Editor > Show Line Numbers
~ Answered on 2014-11-20 05:44:43
31
File > Settings... > Editor > General > Appearance > Show line numbers
Hit Shift twice > write "line numbers" > Show Line Numbers (that one that has the toggle) > change the toggle to ON
~ Answered on 2016-01-10 23:33:42
23
Ok in intelliJ 14 Ultimate using the Mac version this is it.
IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers
~ Answered on 2014-12-16 10:17:16
20
On IntelliJ 12 on MAC OSX, I had a hard time finding it. The search wouldn't show me the way for some reason. Go to Preferences and under IDE Settings, Editor, Appearance and select 'Show line numbers'
~ Answered on 2013-08-07 18:05:11
15
Android Studio
Go to Android Studio => Preferences => Editor => General => Appearance => set Checked "Show line numbers"
~ Answered on 2015-07-12 13:25:46
15
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
~ Answered on 2016-01-07 06:52:48
14
For 9.0.4
File > Settings
In the tree view group
------------IDE Settings ---------
Click the Editor [+]
Select Appearance... Its there.
~ Answered on 2011-09-01 12:30:30
14
I add this response for IntelliJ IDEA 2018.2 - Ultimate.
Using menu
IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers
Using Shortcuts - First way
For Windows : Ctrl+Shift+a
For Mac : Cmd+shift+a
Using Shortcuts - Seconde way
Touch Shift twice
These three methods exist since the last 4 versions of Intellij and I think they remain valid for a long time.
~ Answered on 2018-05-01 09:28:18
13
1st way: Go to View => Active Editor => show line numbers
2nd way Go to Android Studio => Preferences => Editor=> Appearance => set Checked "Show Line Numbers"
~ Answered on 2015-02-23 05:19:34
10
In IntelliJ 14 it has moved again somewhat down the menu.
Now we have it unter Editor -> General -> Appearance
~ Answered on 2014-12-08 07:48:05
10
On Mac Intellij 12.1.2 there is no File-Settings:
There is an application-name menu item to the left of "File" with a "preferences" menu item:
and within that is the "Settings" dialog shown by the Windows Intellij.
~ Answered on 2013-05-03 19:17:49
3
For IntelliJ 20.1 or above, on Mac OSX:
IntelliJ IDEA -> Editor -> General -> Appearance -> Show line numbers
Point to be noted: Always look for Editor
For shortcut:
? + ? + A (command + shift + A)
and click on the pop up to turn on Show line numbers
and you are good to go.
~ Answered on 2020-04-24 08:51:53