Show line number in Eclipse

  1. In Eclipse, open Window->Preferences.
  2. Go to General->Appearance->Editors->Text Editors, check Show line numbers.