When I first fired up IntelliJ and started using it to edit a Java file, one of the first things I wanted to do was to be able to see line numbers within the file.
Configuring IntelliJ to show line numbers is a no-brainer. Here's how to do it:
That's it. Do this and you're ready to go.