Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap content assist in html files in Eclipse

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="...
like image 451
Gero Avatar asked Apr 17 '16 15:04

Gero


People also ask

Why use Bootstrap?

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.


2 Answers

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.

like image 55
Marc-André Avatar answered Oct 15 '22 03:10

Marc-André


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

like image 2
Dev_meno Avatar answered Oct 15 '22 01:10

Dev_meno