If your familiar with visual studio you can select code snippets from the auto complete list. is this possible in IntelliJ
So for example if i type
for
it would show "for" and the live template "fori" in the code complete dropdown list
Invoke basic completion By default, IntelliJ IDEA displays the code completion popup automatically as you type. If automatic completion is disabled, press Ctrl+Space or choose Code | Code Completion | Basic from the main menu. If necessary, press Ctrl+Space for the second time (or press Ctrl+Alt+Space ).
Live Templates reduce the amount of code you need to type for the more common code constructs. You can use psvm or main to create the main Java method, for example. There are lots of live templates including fori for a for i loop and nn for not null, plus many more.
Turns out it is possible (unless I'm missing something) via the Registry editor:
See this answer on how to get to this editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With