Difference between revisions of "Unindent Lines"

From TED Notepad
Line 5: Line 5:
  
 
Note: Does not remove anything else but {{defined|white-spaces}}.
 
Note: Does not remove anything else but {{defined|white-spaces}}.
 +
 +
{{example_start}}Example:
 +
{{example_body}}{{example_select|<nowiki>    if (IsIndented (line))
 +
        Unindent (line);</nowiki>}}
 +
{{example_end}}
 +
 +
{{example_start}}Result:
 +
{{example_body}}{{example_select|<nowiki>if (IsIndented (line))
 +
    Unindent (line);</nowiki>}}
 +
{{example_end}}
  
 
See also {{feature|Unquote}} and {{feature|Shift Left}} tools.
 
See also {{feature|Unquote}} and {{feature|Shift Left}} tools.
  
 
See also {{feature|Trim Tail Spaces}} and {{feature|Trim Empty}} tools.
 
See also {{feature|Trim Tail Spaces}} and {{feature|Trim Empty}} tools.

Revision as of 22:34, 28 April 2010

You see work in progress here; this section already reflects future TED Notepad version 6.0.0.14.
This section may contain incomplete, premature, or mistaken information, prone to change without notice.

Unindent (Ctrl+Shift+Tab)

Removes the first character on each line of the selection, if that character is a white-space.

Note: Does not remove anything else but white-spaces.

Example:
if (IsIndented (line)) Unindent (line);
Result:
if (IsIndented (line)) Unindent (line);

See also Unquote and Shift Left tools.

See also Trim Tail Spaces and Trim Empty tools.