14

Is there a (quick) way to automatically insert the Java for loop, for example, for (int i=0;i< someInt;i++){ ?

It would be very convenient (as rest of code generation functionality).

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
ps-aux
  • 11,627
  • 25
  • 81
  • 128

2 Answers2

30

Type for and then hit Ctrl + Space.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
jmj
  • 237,923
  • 42
  • 401
  • 438
1

You can also use the Fast Code plugin or define your own template similar to IntelliJ IDEA.

Someone has already posted some templates here.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
zbess
  • 812
  • 7
  • 8