- Nov 29, 1999
- 16,408
- 57
- 91
I'm looking for some tool (free, preferable OSS) that will take in a bunch of text files (source code), or an entire directory structure and recursively convert all tab to spaces.
I'm pretty sure this is a trivial script in perl, but that's not really an option for this environment. I could also manually convert them with Visual Studio's editor (or just about any other editor), but I haven't seen a way to automate or batch this process.
Since the code I'm working with is contributed by several people each using a different IDE, I can't really control whether they have their editors set up to do tabs instead of spaces, so I'd really like a quick and user-friendly tool that each person could run on their code before submitting it.
I'm looking at writing this myself (should be relatively simple, even in C/C++), but I thought I'd cast about and see if someone has already done this first.
Any ideas?
I'm pretty sure this is a trivial script in perl, but that's not really an option for this environment. I could also manually convert them with Visual Studio's editor (or just about any other editor), but I haven't seen a way to automate or batch this process.
Since the code I'm working with is contributed by several people each using a different IDE, I can't really control whether they have their editors set up to do tabs instead of spaces, so I'd really like a quick and user-friendly tool that each person could run on their code before submitting it.
I'm looking at writing this myself (should be relatively simple, even in C/C++), but I thought I'd cast about and see if someone has already done this first.
Any ideas?