When automatically creating a foreach loop, IDEA creates it in the following form:

for (double a : array) { //do something } 

Where and how can I change the settings so that IDEA automatically writes a loop condition on a single line?

 for (double a : array) { //do somethinfg } 

    1 answer 1

    Just use the iter template instead of foreach .

    Besides this there are still many different patterns. You can learn more in the documentation for IDEA section Live Templates.