You can right-click to the left of the editor (to the right of the left corner to the left of the cursor), and a menu appears with line numbers. Is that what you asked?
EDIT . You can also enable this behavior by checking the "Show line numbers" box in the
File->Settings->Editor->General->Appearance.
source share