在Xcode 4编辑器中突出显示当前行? [英] Highlight current line in Xcode 4 editor?
问题描述
除非我忽略了它,否则Xcode 4首选项中没有这样的选项.有什么方法(扩展名,插件等)来实现这种视觉反馈?
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?
还是故意忽略了此(基本)功能?
Or was there a deliberate omission of this (rudimentary) feature?
此外,如果有人可以回答有关(符号)选择突出显示的问题,请这样做.
Also, if anybody can answer a question on (symbol) selection highlight, please do so.
执行完这两个之后
$ 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
停止工作(并且Spotlight
也找不到Xcode
).
Xcode
stopped working (and Spotlight
can't find Xcode
as well).
/PATH/TO/CurrentLineHighlighter.dylib
实际上位于Xcode的Contents
文件夹中:/Applications/Xcode.app/Contents/Developer/usr/CurrentLineHighlighter.dylib
The /PATH/TO/CurrentLineHighlighter.dylib
was actually inside Xcode's Contents
folder: /Applications/Xcode.app/Contents/Developer/usr/CurrentLineHighlighter.dylib
推荐答案
我是该(旧)代码的作者.现在,它的更新版本(更安全)是 Xcode4-Fixins 的一部分.因为实际上是Xcode插件,所以它更容易处理.
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.
这篇关于在Xcode 4编辑器中突出显示当前行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!