Creating custom live templates
Answered
I am looking to create a new live template just like the System.out.println().
It does by the name of new Node($END$);
I went to Settings > Live Templates and copied the sout template and created my own newnode as a duplicate of sout. It works fine.
I would like it to work like the sout function, i.e x.sout and enter gives System.out.println(x);
Eg: 4.newnode and enter gives out new Node(4)
Please sign in to leave a comment.
You should use Postfix Completion instead: https://www.jetbrains.com/help/idea/settings-postfix-completion.html .
It worked!!
Thank You!!