I'm trying to edit a C++ file that I inherited that mixes tabs
and spaces to indent the code. The result in Textpad is a fairly ugly display
with inconsistent code indentation.
Is there a tool that would discard the current indentation and
align the code based on good C++ practices?
Al
Alignment problem
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
Re: Alignment problem
What about GC:
http://perso.club-internet.fr/cbeaudet/
It has at least enough parameters so that you might get, what you want.
What I would like to have is a tool that saves the current selection as a temporary file, calls the code beautifier with this temporary file and replaces the current selection with the result.
By that you could beautify single functions or single blocks of code that you would only have to indent. I'm still working on that.
http://perso.club-internet.fr/cbeaudet/
It has at least enough parameters so that you might get, what you want.
What I would like to have is a tool that saves the current selection as a temporary file, calls the code beautifier with this temporary file and replaces the current selection with the result.
By that you could beautify single functions or single blocks of code that you would only have to indent. I'm still working on that.