Guys ... Is there any application or IDE available which can tidy up you C++ Code.
Thanks
Guys ... Is there any application or IDE available which can tidy up you C++ Code.
Thanks
Notepad++ has a TextFX plugin feature "Reindent C++ code"...
"The Internet treats censorship as damage and routes around it." - John Gilmore
Emacs (M-X indent-region after marking the region you want to do) and Visual studio's built-in editor can do the same too (, as well as I'm sure others can do.
There are also external programs, such as "indent" that can do the same.
--
Mats
Baah. Notepad++ is useful anyway.
"The Internet treats censorship as damage and routes around it." - John Gilmore
eclipse->select region->ctrl I->indention according to to the coding style chosen in the setup
If you format your code to begin with you shouldn't need a code tidying tool (except for code made by others).
I agree, keeping it tidy while you're writing it will be so much more beneficial to you.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.