您的位置:首页 > 编程语言 > Java开发

Eclipse中的Hovers 配置解析

2015-10-12 14:30 477 查看
今天在对Eclipse做调试发现,用鼠标点击变量没有显示变量的值,然后一查才知道原来在Hovers配置中没有勾选Variable Values这个选项

然后进入到 Window->Preferences->Java->Editor->Hovers 将[Variable Values]选择即可。

那么Hovers这个配置最近是用来做什么的呢 通过查阅Eclipse官网上的文章我们可以知道

Hovers主要是来用配置当鼠标移动到工程中的某一项目上时 所需要展示的信息。通过Hovers配置实现一些功能的快捷方式。

主要包括以下几个属性的配置:

Combined Hover - Tries the hover in the sequence listed in the table and uses the one which fits best for the selected element and the current context.

Combined Hover:根据当前上下文以及选择的元素 进行自适应匹配展示。

Variable Values  - Shows the value of the selected variable while debugging.

Variable Values :Debug模式下展示当前选择变量的内容

Documentation - Shows the documentation of the selected element.

Documentation:显示当前选择元素的文档信息

Problem Description - Shows the description of the selected problem.

Problem Description:显示当前问题(错误)的描述信息

Source - Shows the source of the selected element.

Source:显示当前选择元素的源码。

Annotation Description - Shows the description of the selected annotation.

Annotation Description :显示当前选择声明的描述信息。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: