There are multiple ways you can enable or disable line numbers on your IntelliJ IDE regardless of what programming language IDE you are using (Android Studio, Java, or PyCharm for Python),
Let's see some examples to enable line numbers,
1. Using right click at gutter area:
- Move your cursor to the gutter area (left side of any file),
- Right click and select: Show line Numbers,
- The line numbers should be visible.

Show Line Number using IntelliJ Gutter Option
Note that the above solution is a temporary solution when you restart your IDE it will be gone.
2. Using Search Everywhere Option
- Press Shift Key Twice,
- Type: Show line Numbers,
- Turn ON the option.

Show Line Number using Search Everywhere Option
3. Using System Preferences,
- Go to IDEA IntelliJ and Select Preferences (this is for macOS, on Windows it may vary),
- Go to Editor -> General -> Appearance,
- Select the checkbox: Show line Numbers

Show Line Number using IDEA IntelliJ Preferences option
This is a permanent solution, even if you close the IDE and reopen it, you will be able to persist with the change.
Comments:
- Further comments disabled!
More Posts related to HowTos,
- Brew Error - This command updates brew itself and does not take formula names
- How to get more information about npm using brew command
- How to find the path of formula Installation by Brew
- MongoDB: Failed to connect to 127.0.0.1:27017 reason: Connection refused
- Clearing the Cache in Firefox Web Browser
- How to enter Rockstar Activation Code?
- How to display line numbers in Terminal while displaying content of a file
- How to install Postman natively on a Mac
- ChatGPT Outage: Hmm...something seems to have gone wrong. Maybe try me again in a little bit.
- Copy all .vcf Mobile Contacts files into one .vcf
- How to Whitelist IP Address on GoDaddy Hosting?
- How to check the version of NodeJS installed
- How to remove password from pdf file
- Top 10 emerging breakthrough trending technologies
- How to press shortcut CTRL + ALT + DEL on Windows Remote Desktop
- Gmail Unable to upload because it is a folder or a package (like an application bundle or RTFD document)
- How to write hello world different languages syntax
- [fix] Editor could not be opened unexpected error: File is a directory (VS Code)
- How to generate ssh key?
- How to Change or Set a new Password for your Wi-Fi Router
- [Error] zsh: command not found: mvn
- What is an Authorization Code Grant? OAuth 2.0
- Install SonarLint on Visual Studio Code
- Unzip a Zip file from Terminal Command
- Format Code in Visual Studio - VS Code [Mac/Windows/Linux]
More Posts:
- How to turn off Stage Manager - macOS Ventura - MacOS
- Change Android EditText Cursor Height - Android
- How to clear Mac Terminal screen - MacOS
- Open VS Code Command Palette using Keyboard Shortcut - Shortcuts
- Android Toast position top - Android
- How to Open Trash on Mac - MacOS
- How to install xz data compression software using Brew - HowTos
- How to Print from JavaScript HTML using window.print - JavaScript