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骨灰级开发者总结了他认为最有用但又不太为人所知的快捷键组合.通过这些组合可以更加容易的浏览源代码,使得整体的开发效率和质量得到提升. ...
随机推荐
- 关于 xcode5 的no matching provisioning profiles found
CHENYILONG Blog 关于 xcode5 的no matching provisioning prof- about the question in xcode5 "no matc ...
- vsftp服务器部署
环境:CentOS 6.6 目标:个人虚机部署vsftp服务器,供测试使用. 说明:步骤已改写为脚本,直接添加用户与对应的密码列表,调用函数名即可 ########################## ...
- 关于golang的defer的练习
golang的defer怎么说.大意就是在函数return后.函数关闭前.按照filo的顺序来执行的关键字 上代码: package main import ( "fmt" ) f ...
- 【Udacity并行计算课程笔记】- lesson 1 The GPU Programming Model
一.传统的提高计算速度的方法 faster clocks (设置更快的时钟) more work over per clock cycle(每个时钟周期做更多的工作) more processors( ...
- C# 百度搜索结果xpath分析
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Net ...
- C#使用WSDL服务总结
站在巨人肩上才能看的更远! 1.C# 利用VS自带的WSDL工具生成WebService服务类 2.C#使用WSDL服务
- PHP时间戳和日期转换
获取当前时间 <?php var_dump(time()); //获取当前时间戳 int(1502245603) 时间戳转换为时间,可以用date(‘Y-m-s h:i:s’, 具体时间戳来实现 ...
- 全键盘操作Windows
计算机机用户在使用计算机的时候,是用键盘多一点?还是用鼠标多一点?如果是专业打字员,应该会说他使用键盘多一点,除此之外,多数人都会告诉你,他已经离不开鼠标了,没有鼠标,就不会操作电脑. 如果某一天 ...
- 16.网络《果壳中的c#》
16.1 网络体系结构 System.Net.* 命名空间包含各种支持标准网络协议的通信. WebClient 外观类:支持通信HTTP或FTP执行简单的下载/上传操作. WebRequest 和 W ...
- 【LOJ】#2496. 「AHOI / HNOI2018」毒瘤
题面 还有这么诚实的出题人! 我们最多影响20个点,然后把这20个点的虚树建出来,并且枚举每个点的选举状态,如果一个点选或不选可以通过改\(dp[u][0] = 0\)或\(dp[u][1] = 0\ ...