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….
Always show line numbers? – IntelliJ
1 Article
1