andydy
andydy

Reputation: 11

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

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!!!

Upvotes: 0

Views: 191

Answers (1)

Anakhand
Anakhand

Reputation: 2998

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.

Upvotes: 1

Related Questions