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….
How to enable line numbers in IntelliJ Android Studio for all files
1 Article
1