代碼提示對于開發(fā)效率是極大的幫助。如果要jsp和html代碼提示該怎么做了?
在MyEclipse 9以前的版本中,我們?nèi)绻獮镠tml編輯器添加自動的代碼提示可以這樣操作:
windows-->preferences-->MyEclipse-->Files and Editors-->HTML-->HTML Source-->Content assist,在Prompt when these characters are inserted后輸入<= abcdefghijklmnopqrstuvwxyz
這樣我們在html代碼里面編輯內(nèi)容的時候輸入任意的字符、空格等就可以達(dá)到代碼自動提示的功能。
在10.0版本的時候,就不能這樣干了,在菜單File->Export,提示

Paste_Image.png
選擇Preferences點(diǎn)擊next,下一步

Paste_Image.png
點(diǎn)擊Finish。
這樣就把配置文件導(dǎo)出到本地了,然后用文本編輯器打開該epf文件,
我是用EditPlus打開的,在最后面加上一條配置信息
/instance/org.eclipse.wst.html.ui/autoProposeCode=<\= abcdefghijklmnopqrstuvwxyz\:
如下圖

Paste_Image.png
然后保存文件,在回到MyEclipse下依次File->Import->General->Preferences,點(diǎn)擊next,選擇先前導(dǎo)出并編輯過的epf文件,導(dǎo)入。

Paste_Image.png
最后,重啟MyEclipse,再輸入代碼就會出現(xiàn)提示了!!!

Paste_Image.png

Paste_Image.png