在Xcode 4编辑器中突出显示当前行? [英] Highlight current line in Xcode 4 editor?

查看:107
本文介绍了在Xcode 4编辑器中突出显示当前行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

除非我忽略了它,否则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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆