byrage
byrage

Reputation: 532

How can i make special live template in IntelliJ?

I have been make Live Template in IntelliJ which name is syso [ System.out.println($END$); ]

But i want to make like sout or par. didn't find anything information.

a busy cat

How can i do this??

Upvotes: 2

Views: 227

Answers (2)

Vincent C.
Vincent C.

Reputation: 857

I did not find the release number bringing this feature, but as of 2019.2.1 you can now edit and create custom Postfix Completion really easily in File | Settings | Editor | General | Postfix Completion.

Note: to my knowledge, you cannot edit some built-in postfix templates (e.g.: !).

Source: https://www.jetbrains.com/help/idea/settings-postfix-completion.html

Upvotes: 3

yole
yole

Reputation: 97138

Each postfix live template is implemented as a custom Java class that performs the necessary transformation of the expression in the editor. The only way to add your own postfix template is to write a plugin.

You can find implementations of postfix live templates for Java here.

Upvotes: 1

Related Questions