command + d
locate and edit duplicate items, perfect for editing the same variables on the same page at onceshift + option + ↓
duplicate the current line of code
💡 Press tab
or enter
at the end
-
Use
.
to attach a class to the tag<!-- div.awesome-class --> <div class="awesome-class"></div>
-
Use
#
to attach an id to the tag<!-- div#specific-id --> <div id="specific-id"></div>
-
Use
>
to include a child element<!-- div.parent-class>div.child-class --> <div class="parent-class"> <div class="child-class"></div> </div>
-
Use
*
to create duplicate elements<!-- ul>li*3>button.btn --> <ul> <li><button class="btn"></button></li> <li><button class="btn"></button></li> <li><button class="btn"></button></li> </ul>
-
Use
$
to add incrementing numbers<!-- table>tbody>tr>td*5.cell$ --> <table> <tbody> <tr> <td class="cell1"></td> <td class="cell2"></td> <td class="cell3"></td> <td class="cell4"></td> <td class="cell5"></td> </tr> </tbody> </table>
-
Use
{}
to add contents between tags<!-- div.your-class{item} --> <div class="your-class">item</div>
💡 Use initial to find attributes, type value and units to autocomplete
m10px
pl5rem
bc#fff
converts to:
margin: 10px; padding-left: 5rem; background-color: #fff;