Tuesday, April 26, 2016

Bootstrap content assist in html files in Eclipse

Leave a Comment

How do I enable content assist / autocompletion for bootstrap elements such as <button class="..."> in html files in eclipse?

I would like to see suggestions e.g.

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

2 Answers

Answers 1

you can download this plugin https://marketplace.eclipse.org/content/enide-eclipse-bootstrap-e4 to enable bootstrap .

To activate autocomplete , you can try this answer Eclipse plugin: AutoComplete as it should be

or if you can write plugin and nothing work with you
http://www.realsolve.co.uk/site/tech/jface-text.php

Answers 2

You could try to install eclipse-wtp-webresources. It allows to get completion for CSS inside the HTML editor of Eclipse. However, some issues could prevent it from fully supporting Bootstrap, I never tried it.

If you have installed Nodeclipse, the JBoss Tools, Liferay or AngularJS Eclipse, you might already have eclipse-wtp-webresources in your Eclipse plugins.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment