【Eclipse】使用指南(5)快捷 Outline 视图

(翻译说明:http://my.oschina.net/ywlaker/blog/468911

使用快捷视图

本小节将介绍快捷 Outline 视图。快捷 Outline 视图是一种在原位上方弹出显示的视图,它显示在编辑器上方并很容易通过键盘来控制。另一种快捷视图将在 Type Hierarchy(类层次结构) 小节介绍 。

快捷 Outline 视图

如何在 Java 编辑器中使用快捷 Outline 视图:

  1. 在编辑器中打开 junit.samples.VectorTest.java 文件(如果还没有打开)。

  2. 按下快捷键 Ctrl + O 或者选择 Navigate > Quick Outline 菜单,你会在弹出层中看到当前源文件的轮廓结构。
    image

  3. 再次按下快捷键 Ctrl + O ,继承而来的属性、类和方法将会显示出来,并且方法会以蓝色显示。

  4. 在快捷视图中输入字符过滤显示结果,使用方向键来切换显示结果中的元素,按下 ENTER 键可以让编辑器刷新并定位到选择的元素。
    image

  5. 点击右上角的三角形图标查看快捷视图菜单;
    image

    菜单可以分为三类:

  • 位置 - 改变视图大小、移动视图位置,并记住这些偏好设置。

  • 过滤器 - 定义过滤器,过滤视图中不需要显示的元素。

  • 分类 - 按类型或者字母顺序排序。

注意:Ctrl + O 只会显示当前编辑器内容的 Outline 结构,按下 Ctrl + F3 可以显示选中类的 Outline 结构

(完)

(原文)

Using quick views

In this section, you will be introduced to the quick outline view. Quick views are in-place views which are shown on top of the editor area and can easily be controlled using the keyboard. A second quick view will be introduced in the Type Hierarchy section.

Quick Outline

To use the quick outline view in the Java editor:

  1. Open junit.samples.VectorTest.java file in the Java editor if you do not already have it open.

  2. PressCtrl+Oor select Navigate > Quick Outline and you will see an in-place outline of the current source file.
    Quick outline of VectorTest

  3. PressCtrl+Oa second time and all inherited fields, types and methods are shown as well (for the types marked with Triangle on the left). Inherited members are shown in blue.

  4. Start typing while the quick outline view is shown to filter the list of displayed elements. Further, use the arrow keys to navigate in the outline view and pressEnterto reveal the selected element in the Java editor.
    Filtered quick outline view

  5. Click the triangle in the upper right corner to see the quick view menu:
    Quick view menu        
    The menu items can be divided into 3 categories:

  • Position - Allows you to resize and move the quick view and to remember these settings

  • Filter - Define filters so that not all members are shown in the quick outline.

  • Sort - Sort the members by their defining type or alphabetically.

Note: Ctrl+O always opens the outline for the current Java editor. Press Ctrl+F3 to open the quick outline for the currently selected type.

(END)

转载于:https://my.oschina.net/ywlaker/blog/470655

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值