2

Unless I've overlooked it, there isn't such an option in Xcode 4 preferences. Is there any way (extension, plugin, etc.) to achieve this visual feedback?

Google search on "xcode 4 highlight current line" is in vain ...

Or was there a deliberate omission of this (rudimentary) feature?

Related question

Also, if anybody can answer a question on (symbol) selection highlight, please do so.

Installing CurrentLineHighlighter.dylib issue

After executing these two

$  defaults write /PATH/TO/Xcode.app/Contents/Info LSEnvironment -dict DYLD_INSERT_LIBRARIES /PATH/TO/CurrentLineHighlighter.dylib

$  /System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -v -f /PATH/TO/Xcode.app

Xcode stopped working (and Spotlight can't find Xcode as well).

The /PATH/TO/CurrentLineHighlighter.dylib was actually inside Xcode's Contents folder: /Applications/Xcode.app/Contents/Developer/usr/CurrentLineHighlighter.dylib

Community
  • 1
  • 1
Blaz
  • 3,548
  • 5
  • 26
  • 40
  • Actually, the second link on google (your search pattern) offers the sources for a dylib that does exactly what you are asking for. – Till Apr 21 '12 at 12:10
  • @Till, I've (mistakenly it seems) thought this was only for the `eero` (programming language). Will give it a shot. – Blaz Apr 21 '12 at 12:30
  • See my answer - it includes all sources and a binary version. – Till Apr 21 '12 at 12:39

1 Answers1

11

I'm the author of that (old) code. A more current (and safer) version of it is now part of Xcode4-Fixins. It is MUCH easier to deal with, since it's actually an Xcode plugin.

Andy Arvanitis
  • 191
  • 2
  • 3