原因,myeclipse 6把alt+/分配给了单词提示,还有代码提示的快捷代码也不是alt+/,因此要恢复代码提
示用alt+/.需要做两件事.
1,windows-->preference-->workbench-->keys 下设置Content Assist 的快捷键
2,windows-->preference-->workbench-->keys 下设置wordcomletion 的快捷键 改成其它的.
如果还是不提示有可能是提示功能被关了.
如下做
1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打
上勾
2、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other JavaProposals 选项打上勾就可以了
######################################设置java格式##############
1.Java代码
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由80改成800就行了。
2.Html代码Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。
示用alt+/.需要做两件事.
1,windows-->preference-->workbench-->keys 下设置Content Assist 的快捷键
2,windows-->preference-->workbench-->keys 下设置wordcomletion 的快捷键 改成其它的.
如果还是不提示有可能是提示功能被关了.
如下做
1、菜单window->Preferences->Java->Editor->Content Assist->Enable auto activation 选项要打
上勾
2、window->Preferences->Java->Editor->Content Assist->Advanced 上面的选项卡Select the proposal kinds contained in the 'default' content assist list: 中把 Other JavaProposals 选项打上勾就可以了
######################################设置java格式##############
1.Java代码
打开Eclipse的Window菜单,然后Preferences->Java->Code Style->Formatter->Edit/Show(根据不同版本可用的按钮会不一样) ->Line Wrapping->Maximum line width:由80改成800就行了。
2.Html代码Window->Preferences->MyEclipse->Files and Editors->Html->Html Source->Line width->加个0以后保存。