PhpStorm Live Templates for XenForo 2

Beta PhpStorm Live Templates for XenForo 2 20210519

No permission to download
Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
Additional requirements
PhpStorm by JetBrains
This is an export of the Live templates I use for XenForo development in PhpStorm. You can see them in use in the Building with XenForo 2 video series.

The list of templates is far from complete, and will be updated periodically as I get around to it but in the interest in sharing useful work, here they are.

Screen Recording 2021-05-10 at 12.22.28-Animated screencap 5fps.gif

To install them into PhpStorm, go to File > Manage IDE Settings > Import Settings..., and point at the zip file attached here.


If you have IDE Settings Sync enabled, you may need to move the XML files from the attached zip manually into place and restart PhpStorm for the settings to take effect.

Under macOS assuming PhpStorm 2021.1, the correct location is ~/Library/Application Support/JetBrains/PhpStorm2021.1/jba_config/templates Other operating systems and PhpStorm versions will require the path to be adapted accordingly.

Further info:
First release
Last update


0.00 star(s) 0 ratings

Latest updates

  1. Now available for VSCode

    Just a note to say that @Myke623 has kindly taken the time to make Visual Studio Code versions...
  2. More features, improved usability

    In this update I have fairly dramatically changed the way you have to call the code snippets...
  3. Minor updates - some basic JS stuff

    Templates for the standard XF javascript file wrapper, element handler and event handler...
Top Bottom