m0rtimer
m0rtimer

Reputation: 2023

How can you find out the line of code your cursor is on in Xcode?

How can you find out the line of code your cursor is on in Xcode?

Upvotes: 2

Views: 785

Answers (2)

Caleb
Caleb

Reputation: 124997

Turn on 'Show Line Numbers' in the text editing preferences. Here's a screen shot for Xcode 4:

Xcode 4 Text Editing preferences


and for Xcode 3:

Xcode 3 Text Editing preferences

Upvotes: 5

Ernest Friedman-Hill
Ernest Friedman-Hill

Reputation: 81684

For me, anyway, right below the title bar of the editor window it says the name of the file and the line number:

ImportExportExample.java:32

Upvotes: 3

Related Questions