Reputation: 532
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.
How can i do this??
Upvotes: 2
Views: 227
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
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