Noble Desktop Blog | Tutorials, Resources, Tips & Tricks

Quickly Write Tags with Their Class or ID in Sublime Text

You can create a tag with a class or ID. For example, if you type p.​info and hit Tab, Emmet expands p.​info to <p class="info"></p>. If you omit the tag, Emmet will choose an appropriate tag (based on the parent tag). For example, if you type #container and hit Tab, Emmet expands #container to <div id="container"></div>.

Note: This keystroke requires Emmet to be installed in Sublime Text. For instructions on how to install Emmet, download our Sublime Text Enhancements Installation Guide.

Learn more Sublime Text Coding Tips. These coding tips are covered in our hands-on coding classes and bootcamps in NYC.

To learn more, check out Noble Desktop’s classes:

Learn more in these courses

Back to Blog
Yelp Facebook LinkedIn YouTube Twitter Instagram