It said I didn't have permission to post in the Bug Report forum. (? -- maybe
that's why there aren't very many bugs reported in there)
On an indented "blank line", the BACKSPACE key should delete _ONE_ indent level,
not to the Beginning-of-the-Line.
Because that makes it impossible (that is, unnecessarily difficult) to unindent
a line to finish it. (when you have a situation where the auto-helper isn't
effective)
Example:
For code like this:
if (whatever) {
do-this;
}
and-then-do-this;
That you want to change to this:
if (whatever) {
do-this;
} else {
and-then-do-this;
}
When you go to the end of the "}" after the "do-this;" line and type "} else
{}", and it adds the last "}" for you, so you DELETE that, and then hit ENTER,
and it auto-indents to under the "} else {", and you hit TAB to indent, and use
the DELETE key to bring up the "and-then-do-this;" line, and hit ENTER and it
indents to under that, and you press BACKSPACE to _unindent_, so you can put the
ending "}" in, it SHOULD go back _ONE_ indentation, not to the
Beginning-of-the-Line.
EVERY editor I've ever used has worked that way. (the good ones, anyway)
You can always use Ctrl-BACKSPACE to delete to the beginning of the line, or, if
you have the "Trim Trailing Spaces" option checked, it just erases the
whitespace anyway once you move off of the line.
Additionally, it would also be nice, for those of us who like to use whitespace
in our code, to be able to "tab-to" the indentation of the most previous
indented line, too. (is there a command key sequence to do this already?)
Or, simply, if you are on a line that only has indentation, when you hit ENTER,
erase the indentation on that line (or allow it to be removed as above), but
indent to the same level on the next "blank line".
Again, all of the good editors I've used work this way.
That is really how it should work, ideally.
Thanks. PSPad is SO close to being like most of the editors I've used, there are
just a few things like this that are "non-standard".
--
<http://forum.pspad.com/read.php?2,54552,54552>
PSPad freeware editor http://www.pspad.com