Highlight current line in Xcode 4 editor?

别来无恙 提交于 2019-12-21 21:14:13

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/10258003/highlight-current-line-in-xcode-4-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!