Eclipse Mark Occurrences
Mark Occurrences
The Mark Occurrences feature enables you to see where an element is referenced by simply clicking on the element in the editor.
When the Mark Occurrences feature is enabled, all occurrences of the element within the active file will be highlighted,
and indicators will be displayed in the annotations bar (to the right of the editor).
In addition, hovering over the element will cause a tooltip to be displayed with the location of all references of the element,
including occurrences of the element in other files.
Occurrences can be of 2 types -
“Write Occurrence” (for occurrences that are in a write mode) or
“Read Occurrence” (for occurrences that are in a read mode).
These will be highlighted in different colors according to the setting configured for PHP elements 'read' and 'write' occurrences
in the Annotations preferences page (Window | Preferences | General | Editors | Text Editors | Preferences).
Here you can also configure the indicators used in the vertical ruler/marker bar (to the left of the editor)
and the annnotations bar (to the right of the editor).
The types of elements whose occurrences will be highlighted can be configured in the
Mark Occurrences preferences page (Window | Preferences | PHP | Editor | Mark Occurrences ).
By default, the following types of elements are marked:
Method Exit - Exit points (throws / return / end of flow) of a method will be marked
Break / Continue - Scope (for, foreach, while, do-while or switch structure) of a break / continue statement will be marked
Local variables
Global variables
Parameters
Functions
Methods
Fields
Class Constants
Constants (defined)
Class/Interface
HTML Tags
You'll want to change the "Occurrences" and "Write Occurrences" colors.
This can be done in the Annotations menu, which is located —
as Colin said — in the Preferences menu under the path
General > Editors > Text Editors > Annotations
If you have an occurrence marked in the overview ruler (the column to the right of the scrollbar),
you can open the Annotations menu directly by right-clicking on the occurrence and selecting Preferences from the context menu.
The color of "occurrences" is used for instances where the variable is being read, but not modified,
in the code (e.g. k
in if(k > 1)
).
The color of "write occurrences" is used where the variable gets modified/written to
in the code (e.g. k
in k = k + 1
).
If you want to change the default highlight colours you can do so in the
Preferences > General > Editors > Text Editors > Annotations
– look for“Occurrence annotation” and “Write occurrences”.
Eclipse Mark Occurrences的更多相关文章
- eclipse使用tips-Toggle Mark Occurrences 颜色更改
Toggle Mark Occurrences这个功能非常好用,能把选中的方法/变量在本类中全部出现的地方高亮显示,是一个非常实用的功能.但是默认颜色是灰色,非常毁眼.可以通过下面的设置更改为自己喜欢 ...
- Eclipse 相同变量背景高亮显示设置(Occurrences)
为了你们查看设置的简便,本次书写重点用图片说明.
- eclipse常用快捷键
1. ctrl+shift+r:打开资源 这可能是所有快捷键组合中最省时间的了.这组快捷键可以让你打开你的工作区中任何一个文件,而你只需要按下文件名或mask名中的前几个字母,比如applic*.xm ...
- Eclipse 双击变量,其他相同变量有底色
转载:http://blog.csdn.net/majian_1987/article/details/46691697 方便下次查找. 在Eclipse中,鼠标选中或者光标移动到Java类的变量名时 ...
- [No000077]打造自己的Eclipse
下载官网的Eclipse IDE for Java EE Developers 在根目录下的eclipse.ini文件中添加"-Dfile.encoding=UTF-8", 作用: ...
- Eclipse设置选中高亮显示
高亮显示选中的变量对于程序员编程很有帮助,正常情况下Eclipse选中变量时都会高亮显示,可能软件冲突导致高亮显示失效,通过如下方法可以进行恢复. 单击IDE顶部Window菜单下的Prefences ...
- 【转】Eclipse快捷键 10个最有用的快捷键
转载地址:http://www.open-open.com/bbs/view/1320934157953 Eclipse中10个最有用的快捷键组合 一个Eclipse骨灰级开发者总结了他认为最有用但 ...
- 转:Eclipse快捷键 10个最有用的快捷键
Eclipse快捷键 10个最有用的快捷键 Eclipse中10个最有用的快捷键组合 一个Eclipse骨灰级开发者总结了他认为最有用但又不太为人所知的快捷键组合.通过这些组合可以更加容易的浏览源代 ...
- Eclipse中10个最有用的快捷键组合
Eclipse中10个最有用的快捷键组合 (转) 一个Eclipse骨灰级开发者总结了他认为最有用但又不太为人所知的快捷键组合.通过这些组合可以更加容易的浏览源代码,使得整体的开发效率和质量得到提升. ...
随机推荐
- Python 入门基础7 --文件操作
今日目录: 一.文件处理 1.什么是文件 2.为何用文件 3.如何用文件 4.文件操作 5.常用方法 6.文件内指针的移动 7.with的使用 一.文件处理 1. 什么是文件 文件是操作系统为用户/应 ...
- IL反编译的实用工具Ildasm.exe
初识Ildasm.exe——IL反编译的实用工具 https://www.cnblogs.com/yangmingming/archive/2010/02/03/1662307.html 学 ...
- 搜索引擎ElasticSearchV5.4.2系列二之ElasticSearchV5.4.2+kibanaV5.4.2+x-packV5.4.2安装
相关博文: 搜索引擎ElasticSearchV5.4.2系列一之ES介绍 搜索引擎ElasticSearchV5.4.2系列二之ElasticSearchV5.4.2+klanaV5.4.2+x-p ...
- Google-Guice入门介绍
原地址:http://blog.csdn.net/derekjiang/article/details/7231490 一. 概述 Guice是一个轻量级的DI框架.本文对Guice的基本用法作以介绍 ...
- Network Principle Course Summary 001
1.物理层 物理层 协议:RJ45.CLOCK.IEEE802.3 (中继器,集线器) 作用:通过媒介传输比特,确定机械及电气规范(比特Bit) 1.1 通信基础 数据 (data) —— 运送消息的 ...
- 解决tomcat 启动 一闪而过
有的朋友在启动Tomcat的时候会出现问题. 1例如: 手动点击startup.bat 后 ,一闪而过 2例如:在cmd下 进到tomcat的bin目录 运行 startup.bat ,然后输出 了J ...
- input标签的事件汇总
我在做一个注册时用到了,在网上查的,比较碎.就汇总了下, 1.onfocus 当input 获取到焦点时触发 2.onblur 当input失去焦点时触发,注意:这个事件触发的前提是已经获取了焦点 ...
- CentOS 下的邮件通知
利用Shell邮件通知 echo "邮件内容" |mail -s 邮件主题 收件人地址 echo "This is Test mail."|mail -s &q ...
- intellj idea show "run dashboard" panel
workspace.xml edit this point <component name="RunDashboard"> <option name=" ...
- 【LOJ】 #2547. 「JSOI2018」防御网络
题解 如果只是一棵树的话,那么就枚举每条边,分成两部分大小为\(a\)和\(b\) 那么这条边被统计的方案数是\((2^a - 1)(2^b - 1)\) 如果是一个环的话,我们枚举环上至少有\(N ...