Emmet

If you are an experienced web programmer, you know that Emmet is a valuable tool in web development. In essence, Emmet provides powerful options to shorthand while writing HTML and CSS code; the support Emmet offers allows for faster writing and editing. Quite similar to general code completion, you type the shorthand for a piece of code in PyCharm and hit the Tab key, and the complete code will be inserted.

For example, you'd like to create an HTML table of two rows and three columns, which typically corresponds to the following code:

<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>

In this case, with Emmet, you can simply type table>tr*2>td*3 in an HTML file and hit the Tab key, and you will see that the appropriate code is generated.

Emmet is not a part of the Python web development process or of the PyCharm IDE. It is simply a general toolkit that can be installed and utilized in web projects. However, since Emmet is such a powerful and widely used tool, PyCharm offers its full support for Emmet in its web development projects. Additionally, you can configure the behavior of Emmet within PyCharm by going to the settings and navigating to Editor | Emmet.

To learn more about Emmet itself outside the context of Python and PyCharm, you can also go to https://emmet.io/.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset