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="...
Advantages of Bootstrap: Easy to use: Anybody with just basic knowledge of HTML and CSS can start using Bootstrap. Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops. Mobile-first approach: In Bootstrap 3, mobile-first styles are part of the core framework.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With