To permanently turn on line numbers in IntelliJ IDEA (and other JetBrains IDEs): Go to File > Settings… Then go to Editor > General > Appearance. Check the Show line numbers box. Click Apply and OK. Line numbers are now permanently turned on….
Intellij – Displaying line numbers
1 Article
1