There are two competing requirements
1) I want to pretty print so that I can read and understand code written by my peers
2) I don't want to check in the pretty printed code to source control because...
- It might not meet the coding standard where I work
- When reviewing history in source control, formatting changes obscure the 'real' changes.
For discussion of problems checking in formatting changes, see this other stackoverflow question
At the same time, I still need to be able to edit the file and save changes. I want to be able to edit the ugly text while I see the pretty text.
Does anyone know an editor with a feature like this?