41

How do I permanently turn on line numbers in IntelliJ IDEA 14? This post is outdated: how-can-i-permanently-have-line-numbers-in-intellij

Community
  • 1
  • 1
JBaczuk
  • 13,886
  • 10
  • 58
  • 86

7 Answers7

78

Permanently (Ubuntu):

File > Settings > Editor > General > Appearance > Show Line Numbers

enter image description here

For just the current editor: View > Active Editor > Show Line Numbers

enter image description here

JBaczuk
  • 13,886
  • 10
  • 58
  • 86
19

You can do it even faster, using the Search Everywhere tool (press Shift twice): type "Show Line Numbers" (or even "line") and the top hit is the switch for permanent line numbers. Enable Line Numbers

There are 2 switches for line numbers, one that has a On/Off switch and works globally, and one without the switch - for the current file. And one more for the Active Editor (current file).

enter image description here

Radu Bompa
  • 1,594
  • 1
  • 15
  • 21
4

Go to Settings/Editor/General/Appearance and enable Show line numbers to permanently show line numbers for all editors.

The solution with View > Active Editor > Show Line Numbers seems to work only for the active editor (when you close the current tab or open a new file you have to enable it again).

Bohuslav Burghardt
  • 33,626
  • 7
  • 114
  • 109
2

Go to Preferences > Editor > Appearance, and select the Show line numbers check box.

It will turn on the line numbers permanently.

J0e3gan
  • 8,740
  • 10
  • 53
  • 80
2

Just right click and enable Lines in Windows. For more info check this link.

enter image description here

Anuj Sharma
  • 4,294
  • 2
  • 37
  • 53
1

IntelliJ IDEA 15.0.3

File > Settings > Editor > General > Appearance > Show Line Numbers

IntelliJ IDEA 15.0.3

Neoheurist
  • 3,183
  • 6
  • 37
  • 55
0

In Android Studio 1.3.2 (a variety of IntelliJ Idea) you can find the "Show line numbers" checkbox under:

Android Studio > Preferences > Editor > General > Appearance

Or, if you type "line numbers" into the main search box you'll be presented with a switch you can set right there.