HOW to add a live template in Pycharm like '$var$.print'

182 views Asked by At

I hope to create a template type so that when I typo var.type, I'll get the output like type(var), but i couldnt find the similar template in settings of Pycharm, hope for some help!!!

1

There are 1 answers

2
Anakhand On

That's a postfix template, and they still don't support custom postfix templates for Python.

From the help page:

You can edit the predefined postfix templates, for example, to replace a long key with a shorter one, or to expand the list of applicable expression types. Due to PyCharm limitations, you cannot create any custom postfix templates for Python.