31

I know you can go to preferences and enable a column that appears on the left part of the editor, showing the line number.

But I am asking is there a way of showing the line number in some kind of status bar or any other part of the Xcode UI without enabling this option (similarly to what Xcode 3 did)?

CanSpice
  • 34,814
  • 10
  • 72
  • 86
Ricardo Sanchez-Saez
  • 9,466
  • 8
  • 53
  • 92
  • http://stackoverflow.com/questions/5901758/xcode-4-see-the-number-of-the-line-of-code-i-am-on – Hazel Sophie Jan 11 '12 at 10:02
  • The natural place for this to appear in Xcode would be the jump bar. Please file a bug at bugreport.apple.com and reference radar://9245044 to request this. – Quinn Taylor Oct 19 '15 at 22:08

3 Answers3

49

Its not removed..Goto X-Code--> Preferences --> Text Editing --> Check Line Numbers..

enter image description here

rohan-patel
  • 5,772
  • 5
  • 45
  • 68
15

From what I've read so far, I think this option has been removed from XCode 4. Personally, I leave the line numbers column on all the time and it's not too intrusive.

jbjon
  • 1,247
  • 1
  • 14
  • 24
2

Dave Keck's Xcode fixins might provide a good alternative to what you are looking for. I use XCFixin_CurrentLineHighlighter and it works like charm. See the attached screenshot:

Current line highlighted

The easiest way to try the plugin, and discover new ones, is to use Alcatraz.

Cheers,

jlmendezbonini
  • 2,239
  • 21
  • 25
  • Thanks for the tip and for mentioning Alcatraz! Great piece of software. Up-voted. – Ricardo Sanchez-Saez May 18 '13 at 00:06
  • Xcode fixins are interesting but this question is asking how to show the current line number in a status area, not highlight the current line. Xcode fixins does not restore the line number in status area feature that Xcode 3 had (and every other coding IDE I've ever used also has). – Winter Dragoness Dec 03 '14 at 23:33