in reply to Re: Pretty Print (already)
in thread Pretty Print

If I type a tab, my editor knows to turn it into an appropriate number of spaces for me.

What I don't like about that approach, and why I don't enable that option in my editor, is because it isn't smart enough to do the reverse: to delete an appropriate number of spaces when I hit the backspace key.

Replies are listed 'Best First'.
Re^3: Pretty Print (backspace)
by tye (Sage) on May 31, 2016 at 02:37 UTC

    Get a better editor? That "just works" for me in vim across a single insert operation. And even though vim's scripting features can be a bit awkward, making a single backspace over whitespace that extends to the prior tab stop behave as you describe isn't beyond what is possible. But then, maybe you also want backspace to not do that in some of those cases, but this is pretty far afield from the thread subject. (:

    - tye