Eclipse 简明教程
Eclipse - Content Assist
Using Content Assist
在编辑器中,内容助手通过提供对已键入字符的可能完成的上下文相关的列表,帮助减少键入的字符。内容助手可以通过单击 Ctrl + 空格来调用。
Within an editor, content assist helps reduce the characters typed by providing a context sensitive list of possible completions to the characters already typed. The context assist can be invoked by clicking Ctrl + Space.
如果你正在 Java 编辑器中编辑方法的主体,并在新行中按下 Ctrl + 空格,它将弹出一个显示以下内容的对话框:
If you are editing the body of a method in the java editor and press Ctrl + Space on a new line it will bring up a dialog showing −
-
The class variables
-
The class methods
-
Super class methods
-
Other relevant classes
要从列表中选择一个项目,只需使用上或下箭头键高亮该项目并按回车键。
To select an item from the list just highlight the item using the up or down arrow keys and press enter.
如果你输入一些字符,然后按下 Ctrl + 空格,对话框将只显示以输入字符开头的项目。
If you type some characters and then press Ctrl + space the dialog box will show only items that start with the characters typed in.