myeclipse 提示xml 標籤屬性

來源:互聯網
上載者:User
在myeclipse8.5中寫struts2的struts.xml設定檔時,沒有提示功能,可以這樣解決: 1,開啟window-preferences-myeclipse enterprise workbench-files and editors-xml-xml catalog,
點 add..,出現一對話方塊,location欄選file system,找到struts-2.0.14-all/struts-2.0.14/src/core/src/main/resources目錄下的 struts-2.0.dtd檔案,開啟,然後key type 選擇uri,下面key值填 http://struts.apache.org/dtds/struts-2.0.dtd ,點擊OK,這樣再次開啟struts.xml時應該就有提示了。
2,當你輸入元素後,如果沒有屬性提示,比如輸入<action name="" ></action>,不能再繼續提示action中的屬性的話,需要做如下修改:
開啟window-preferences-general-keys,在右邊找到content Assist這一欄,如果這一欄中binding下面有值,點擊remove binding,然後在下面的binding欄,選擇另一個快速鍵,比如‘alt+,’,點擊OK。
重新開啟struts.xml檔案,需要屬性提示時,按所設定的快速鍵,就會出現屬性提示。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.