When auto indent is enabled and you press "Enter", the new line will have the same indentation as the previous one.
Auto Indent offers a quick and easy way to set indentation on a line-by-line basis and as such is useful for programmers who need to indent lines for improved legibility.
E.g. in HTML:
<table> (indented to show that it belongs to <body>)
<tr> (indented to show that it belongs to <table>)
This is a table cell
This is the second line in the table cell,
same indentation level as the first line
<⁄table> (table close tag, belongs to the same level as table open tab)
<⁄body> (end of document, indentation level 0)
When ready to apply Auto Indent:
- Press Enter to create a new line;
- Press the Tab key as many times as needed to indent the line to the desired depth;
- Type the line;
- Click Main menu ⁄ Format ⁄ Auto Indent or press F6 to turn this feature on;
- Press Enter to commence a new line. The new line will commence at the same number of tab stops as the previous line.
When Auto Indent is on, the "Insert" and "Overwrite" flags on the Status bar change to "Ins AuIn" and "Over AuIn" respectively (Auto Indent).
- To turn Auto Indent off, repeat step 4.
- Auto Indent is equivalent to pressing the Tab key the desired number of times for each line, only this is much more work.
- To increase the auto-indentation by one measure, simply press the Tab key at the beginning of the next line, and it will be remembered.
- Likewise, to decrease the auto-indentation by one measure, simply press the Backspace key at the beginning of the next line.