How to make phpstorm display line numbers by default? September 22, 2022 by Tarik Settings (or Preferences if you are on Mac) | Editor | General | Appearance and check Show line numbers.