In most code editors, the folding icon is located in the line number column. The benefits is that it is less distractive to users as it won't move as they type.
To prevent ambiguity (e.g. in lines with multiple templates), we can restrict the indicator to be visible only on templates spanning multiple lines, and still make the keyboard shortcut work for most templates.
Given that we have not enabled the line number column on most pages, we may need to enable it first, if we decided to move on this.