I understand that most good HTML code editors have a way to generate HTML boilerplate, but does Pycharm have this functionality, ideally through a shortcut?
I tried searching for the shortcuts menu on PyCharm, but couldn’t find it
I understand that most good HTML code editors have a way to generate HTML boilerplate, but does Pycharm have this functionality, ideally through a shortcut?
I tried searching for the shortcuts menu on PyCharm, but couldn’t find it
2
Answers
You can try below steps to use live templates, you can quickly generate HTML boilerplate code in PyCharm, improving your productivity.
You can add a new template by clicking the + button.
Select Template Group and name your group (e.g., HTML).
Within that group, click the + button again and select Live Template.
Define your abbreviation (e.g., html5), description, and the template text.
Set the context to HTML so that this template is only available in HTML files.
Hope this help
PyCharm has a functionality to generate HTML boilerplate-
Type html:5 and then press Tab or Enter
This is abbreviation to a complete HTML5 boilerplate