1
1
Fork 0
AtomicKotlinCourse/Programming Basics/Looping & Ranges/Exercise 5/task.md

621 B

Mastering the IDE: iter Live Template

IntelliJ IDEA rapidly creates frequent-used expressions using Live templates. Type iter and then press &shortcut:ExpandLiveTemplateByTab;. This live template expands into a for expression. You type the expression you want to iterate over, along with the name for the index variable. IntelliJ IDEA automatically suggests the variable name to iterate over if it's available in the context.

iter + tab

for (i in iterable) {

}

Expand the iter live template to iterate over a string in the example.