Emmet 단축키 정리

단축키 실행: cmd + E

child: >

div>ul>li

<div>
    <ul>
        <li></li>
    </ul>
</div>

Sibling: +

div+p+bq

<div></div>
<p></p>
<blockquote></blockquote>

상위로 빠져나오기: ^

div+div>p>span+em^^^bq

<div></div>
<div>
    <p><span></span><em></em></p>
</div>
<blockquote></blockquote>

Multiplication: *

ul>li*5

<ul>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
    <li></li>
</ul>

그룹핑: ()

div>(header>ul>li*2>a)+footer>p
...expands to

<div>
    <header>
        <ul>
            <li><a href=""></a></li>
            <li><a href=""></a></li>
        </ul>
    </header>
    <footer>
        <p></p>
    </footer>
</div>

ID, Class

div#header+div.page+div#footer.class1.class2.class3

<div id="header"></div>
<div class="page"></div>
<div id="footer" class="class1 class2 class3"></div>

리스트 넘버링: $

ul>li.item$*5

<ul>
    <li class="item1"></li>
    <li class="item2"></li>
    <li class="item3"></li>
    <li class="item4"></li>
    <li class="item5"></li>
</ul>

텍스트: {}

a{Click me}

<a href="">Click me</a>

속성

link[rel=prefetch title="Hello world"]

<link rel="prefetch" href="" title="Hello world">

CSS

w100p → width: 100%
m10p30e5x → margin: 10% 30em 5ex
fw400 → font-weight: 400;

p!+m10e!
padding:  !important;
margin: 10em !important;

Published by

Yurim Jin

아름다운 웹과 디자인, 장고와 리액트, 그리고 음악과 맥주를 사랑하는 망고장스터

One thought on “Emmet 단축키 정리”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s