phpstormphpstorm-2017.1

PhpStorm - change Live Templates location


I've created some useful Live Templates in PhpStorm on my PC at work.

Nothing exciting so far, but I'd like to take those live templates with me at home as well, as I am using PhpStorm on my Mac as well.

I know that there's the possibility to export the live templates to a .jar file and then import them again, but I was wondering if there was a better solution (one that doesn't include export/import every time you make a change).

My Idea was the following:

Can I change the path that PhpStorm uses to locate live templates to a different folder? My idea is to then share this folder to my PC and my Mac (almost certainly as a Dropbox folder) and then I don't have to worry about live templates anymore, as they will be loaded from the Dropbox shared folder automatically and always be up to date.

Is this possible in any way?

Do you have alternative solutions to achieve the same result that you would like to share here as well?


Solution

  • Ok, so I followed this link that gives me an easy to understand explanation about what each folder contains and then I decided to symlink the folder I want to share and everything seem to work just fine (so far).

    Thanks to @LazyOne to mention the Symlink idea :)