logoalt Hacker News

teifererlast Sunday at 9:16 PM3 repliesview on HN

> have to fix it up manually

Any editor written or actively maintained in the current century does this automatically for you. (Yes that obviously includes Emacs and Vim).


Replies

jcgllast Sunday at 9:39 PM

But that doesn't work if the indentation carries semantic meaning; you can't change the indentation without changing the meaning. Maybe you can correct syntactically-incorrect spacing (e.g. change 3 spaces to 4 spaces), but not much beyond that.

vrighterlast Monday at 2:08 PM

no, they can't in indentation based languages. changing indentation implies changing the code. A formatter isn't allowed to do that

rurbanlast Monday at 6:21 AM

In gdb? It's a shame gdb picked python