Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to create custom postfix completions in IntelliJ?

I want to be able to make custom postfix completions, but I can't seem to find anywhere to do so and haven't been able to find anything online. Anyone know how?

like image 209
Kane Kelley Avatar asked Mar 25 '15 05:03

Kane Kelley


3 Answers

Now you can. I've written a plugin for IDEA that allows you to create your own postfix templates. It's called Custom Postfix Templates:

like image 143
Stefan Endrullis Avatar answered Nov 18 '22 21:11

Stefan Endrullis


You can't.
Well, postfix feature is basically Postfix Plugin for IntelliJ(now integrated). All templates are just compiled code, as you can see here:

https://github.com/controlflow/intellij-postfix/tree/master/src/org/jetbrains/postfixCompletion/templates

Sadly, there isn't such easy xml like configuration. :(

like image 24
gumyns Avatar answered Nov 18 '22 19:11

gumyns


With the latest release i.e IntelliJ IDEA 2018.1, you can. That too, without using any plugin. It's embedded into the IDE itself.

https://blog.jetbrains.com/idea/2018/02/intellij-idea-2018-1-eap-partial-git-commits-and-more/

enter image description here

enter image description here

like image 9
Isank Avatar answered Nov 18 '22 19:11

Isank