Eclipse highlighting the same occurrence of the word(Eclipse 突出显示相同出现的单词)
问题描述
在 Notepad++ 中,它有一个非常好的功能,如果我选择一个单词,它将突出显示整个文本中所有相同的单词.除此之外,我可以设置热键以突出显示多达五个不同样式的不同单词(见下图效果).
In Notepad++ , it has a very nice feature that if I select a word , it will highlight all the same words throughout the text . Added to this , I can set the hot-keys to highlight up to five different words with different styles (See the effect below) .
有什么方法可以在 eclipse 中获得类似的效果吗?我知道在编辑 Java 时,它会突出显示所有相同的变量,但是当我突出显示注释和编辑其他文件类型(例如 xml、html、js、css 等)时,它将不起作用.
Is there any ways /plug-ins to get this similar effect in eclipse ? I know when editing Java , it will highlight all the same variables ,but it will not work when I highlight the comments and editing other files type (e.g. xml, html, js, css and etc).
推荐答案
我使用 Eclipse 已经有一段时间了,我很确定没有规范的方法可以做到这一点.
I've been working with Eclipse for quite a while and I'm pretty certain that there is no canonical way of doing this.
在 Eclipse 中,这些东西是在每个编辑器的基础上管理的,Java 编辑器不支持我所知道的所有内容.至少对于 Java 编辑器,您可以对突出显示的内容和方式(Preferences > Java > Editor > Mark Occurrences)进行一些小的配置,但我想您已经知道了.
In Eclipse these things are managed on a per-editor basis and the Java editor does not support what your looking for for all I know. At least for the Java editor you can do some minor configuration in what is highlighted and how (Preferences > Java > Editor > Mark Occurrences), but I guess you already know that.
至于插件,我不知道有任何插件可以实现您的需求.事实上,如果真的有一个插件可以实现您的需求,我会感到惊讶.
As for plugins, I'm not aware of any plugin that achieves what you're looking for. As a matter of fact I'd be surprised if there really was a plugin which achieves what you're looking for.
如果出现问题,我非常感谢您在这里分享它,多年来我一直试图在 Eclipse 中获得体面的高亮显示,但没有成功...... :)
If something comes up I'd much appreciate you sharing it here, I've been trying to get decent highlighting into Eclipse for years unsuccessfully... :)
这篇关于Eclipse 突出显示相同出现的单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse 突出显示相同出现的单词
基础教程推荐
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
