1. 程式人生 > >eclipse---之C++/C下Hovers的配置

eclipse---之C++/C下Hovers的配置

 

Eclipse中的Hovers 配置解析

2015年10月12日 14:30:11 二進位制的蛇 閱讀數:1419更多

個人分類: Java

今天在對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 :顯示當前選擇宣告的描述資訊。