Skip to content

Instantly share code, notes, and snippets.

@maxfenton
Last active May 1, 2023 15:50
Show Gist options
  • Save maxfenton/ea4da69280be28482ac8364ab07afce4 to your computer and use it in GitHub Desktop.
Save maxfenton/ea4da69280be28482ac8364ab07afce4 to your computer and use it in GitHub Desktop.
PhpStorm live template for CraftCMS / Twig development
<templateSet group="Twig - Craft">
<template name="tag" value="{% tag '$END$' with {} %}&#10;&#9;&#10;{% endtag %}" description="{% tag %}...{% endtag %}" toReformat="false" toShortenFQNames="true">
<context>
<option name="Twig" value="true" />
</context>
</template>
</templateSet>
@maxfenton
Copy link
Author

This file goes in ~/Library/Application\ Support/JetBrains/PhpStorm[VERSION]/templates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment