Hi everybody,
today i searched in the forum and i found not a really good thread about Emmet and the advantages of this Plugin. So i want to tell you something about it because i use it sometimes and find it helpful (especially for lazy bones like me ).
What is Emmet?
Emmet is a Plugin which you can download for your editor. Many editors like Sublime, Atom, NetBeans, Eclipse and much more supporting Emmet.
I use Visual Studio Code where it is already integrated.
What can i do with Emmet?
As a Freelancer (time is money) or advanced developer you may hate it to write down many basic code lines before the real work begin.
Of course you can use a template or something else but it is more flexible and faster to use a few words for many lines of code.
For example:
<div class="blocks">
<h2>sub title</h2>
` <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Deleniti commodi ab iure unde,
nam quod sapiente vitae dolor mollitia placeat vero nemo eligendi tempora iste reiciendis
aperiam cum quaerat delectus!</p>
</div>
<div class="blocks">
<h2>sub title</h2>
<p>Quia iusto necessitatibus nobis a, ipsum, voluptas ducimus velit excepturi reiciendis culpa
ut sequi adipisci pariatur consequatur! Sapiente, libero reprehenderit omnis sed eius, ut
distinctio. Obcaecati distinctio cum ipsa autem?</p>
</div>
Many lines wthout Emmet and only one line with it:
.blocks*2>h2{sub title}+p>lorem
Of course you can add more to this command like img or ul and il.
Do you know the shortest command? It is:
!
You can try it for yourself because jsfiddle.net , codepen.io and other plattforms supporting Emmet too.
Go to the jsfiddle website and type ! in the HTML part and press TAB. In most editors or online plattforms it works like this command + TAB
I hope you find this thread useful. If you want to know more about it and where you can get it look at the links below.
Ressources:
Emmet Website http://emmet.io/
Free Emmet course Udemy
Till next time.
Regards
Phajava