2016-04-17 18 views
3

如何在eclipse中的html文件中爲引導元素(如<button class="...">)啓用內容輔助/自動完成功能?引導內容幫助Eclipse中的html文件

我希望看到建議,例如

<button class="btn btn-primary btn-lg 
<button class="btn btn-info 
<button class="... 

回答

3

您可以嘗試安裝eclipse-wtp-webresources。它允許在Eclipse的HTML編輯器中獲得completion for CSS。但是,有些問題可能會阻止它完全支持Bootstrap,我從來沒有嘗試過。

如果您已經安裝了Nodeclipse,JBoss Tools,Liferay或AngularJS Eclipse,那麼您的Eclipse插件中可能已經包含eclipse-wtp-webresources。

2

您可以下載此插件 https://marketplace.eclipse.org/content/enide-eclipse-bootstrap-e4以啓用引導。

要激活自動完成,你可以試試這個答案 Eclipse plugin: AutoComplete as it should be

,或者如果你可以寫你的插件並沒有什麼工作
http://www.realsolve.co.uk/site/tech/jface-text.php

+1

我收到錯誤「無庫在http發現:/ /download.vogella.com/kepler/e4tools「。當試圖在Eclipse Mars上安裝這個插件時。知道任何解決方法? –

+1

網址無效! –

+0

由Sinan Cetinkaya在星期二,2017-02-28 20:20提交 下載[Eclipse-bootstrap-e4.p2f](https://github.com/Enide/Eclipse-bootstrap-e4/blob/master/ Eclipse-bootstrap-e4.p2f)從它的github回購。 運行Eclipse 文件 - >導入 - >搜索從文件中安裝軟件項目 導入您已下載的Eclipse-bootstrap-e4.p2f。 安裝 – happymacarts

相關問題