Multiline Statement Indentation

#1

Hi. This is a feature that Defold lacks, but the vast majority of alternative text editors have: proper multiline statement indentation. This is pretty annoying. Sometimes I need to make a really long statement, such as:

self.noise = perlin.generate_noise(CANVAS_WIDTH, CANVAS_HEIGHT, style.scale, style.octaves, style.persistance, style.lacunarity)

Normally, I would push the enter key and split this into a multiline statement so it’s readible without having the physically scroll the text editor right and left. Unfortunately, Defold doesn’t know how to indent the part of the statement that runs onto the next line. Unless I’m missing something, this seems like it should have been implemented before the editor was even first released.

0 Likes