ITeye博客

Eclipse代码提示大全

iammonster · 2009-04-03 21:36 · Eclipse · Markdown

1、触发代码提示时候出现代码提示?

window->Preferences->Java->Editor->Content Assist->Advanced  上面的选项卡

Select the proposal kinds contained in the 'default' content assist list: 中

把 Other Java Proposals 选项打上勾就就会在触发代码提示时候出现代码提示。

 

2、输入.(或其他符号)后出提示?

window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项打上勾,可以设置.(或其他符号)后出提示

 

3、设置代码提示快捷键?

windows-->preference-->workbench-->keys 下设置Content Assist  代码提示快捷键

 

4、输入 out 按ALT+/ 则自动输入System.out.println?

Windows->Preferences->Java->Editor->Templates 是一个模板设置,里面有些默认的,也可以自己添加比如说里面有for 模板,在代码中输入 for,在按快捷键 alt+/,就会把你模板中定义的代码模块给自动写上去,再如:输入 out 按ALT+/ 则自动输入System.out.println(光标位置);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。