Live Template for PyCharm to support Emmet codes in HAML

The blog is currently being ported from WordPress to over 12 years of static pages of content. If there's an article missing that you're hoping to see, please contact me and let me know and I'll prioritize getting it online.

December 16, 2013


Weekend project: write up a Live Template for PyCharm (should work on other JetBrains editors) for basic emmet.io shortcuts to use within #HAML documents.

Examples:

  • start a new HAML document, type just an exclamation point and hit TAB and you should see a basic html/head/body structure take form
  • just an ‘a’ and hit tab to get “%a(href='' title='')” and so on.

Contributions are more than welcome. The first pass at this basically copied the “Zen HTML.xml” file that shipped with PyCharm and modified it for HAML representations. I’d love to see a full Emmet engine within JetBrains some day, but this will do for now.

Open-source: