PyCharm: How to use Live Template in File Template

1k Views Asked by At

This question follows on from one I asked last week - How to apply more than one function to a passed in live template variable?

Now that I have a live template function called classNameFromFileName, I am unable to use it in a file template.

I have ticked the "Enable Live Templates" checkbox inside the File Template editor page and no combination of #set or #[[ ]]# etc will work.

If I use the template, it just ends up putting the name of the Live Template function inside my new file, rather than actually calling the function.

The PyCharm help offers nothing in the way of an example - does anyone know how to call a live template function from a file template?

Thanks.

1

There are 1 best solutions below

0
On BEST ANSWER