- Choose Xcode -> Preferences Menu item.- Select “Text Editing” tab.- Check the check box for “Show line numbers”