EmEditor's indent behavior on blank lines

107 Views Asked by At

Currently EmEditor inserts indent characters (spaces or tabs) as below:

[indent]for (i = 0; i < 10; ++i)
[indent][indent]printf("%d\n", i);[cursor]

If I press Enter twice, the text will become:

[indent]for (i = 0; i < 10; ++i)
[indent][indent]printf("%d\n", i);
[indent]
[indent][cursor]

As you see, the 3rd line is blank, but has an indent character which most people want to eliminate. Is there an option to let EmEditor not insert that indent character?

1

There are 1 best solutions below

1
On

You can set the Delete Spaces at End of Lines option in the Save Details dialog box (configuration properties -> File -> Saving... button).

EmEditor - Save Details