“Surround with”-template in Eclipse: foreach

后端 未结 4 795
借酒劲吻你
借酒劲吻你 2021-02-04 14:58

I am new to Eclipse which I use primarily for Java. I have previously used IntelliJ Idea in which it is possible to select a variable which extends Iteratable (Collection, List

4条回答
  •  时光取名叫无心
    2021-02-04 15:48

    As far as I know Eclipse does not support that in the way you describe.

    If Eclipse does not find the right variable you can use the tabulator key to iterate through the placeholders in the foreach template. At the iterable point eclipse will show you a list of iterables you can choose from.

提交回复
热议问题