I find that I now often work with code bases that have different amounts of indentation. Some use 2 spaces, some use 4 space, some even use tabs! Once in a while, I have to share code between these codebases, or, sometimes I use an incorrect amount of indentation by mistake. Is there a tool or a text editor feature that will convert between different amounts of indentation?
Update: I mostly code in Javascript, HTML, CSS and Python now days. I'd prefer some thing language agnostic, because I work with a few different languages.