Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Maybe formatting just the lines you've modified: on Emacs I'm a big fan of dtrt-indent, which fixes the indentation only on the lines you've modified, without breaking the style of the rest of the file. Great when collaborating on an open-source project. The default "format-on-save" setting would reformat the entire file, creating huge diffs for simple changes.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: