When you see the source code, you can't format the code, Java is of course used to use Eclipse, but C / C has not had a suitable tool to format (Format) / Style code, although Visual Studio 6.0 - Visual Studio 2005 provides code formatting features, but it is really - it is too simple, it is not enough at all! ! ! Later, I found a very good tool artistic style, which was very powerful, support C / C / C # and Java, and open source, the final version is 1.17.0. This version needs to download and compile with CVS, which is still small bug, it is estimated that the author is not empty, huh.
Artistic Style 1.17.0-Dev A Free, Fast and Small Automatic Formatterfor C, C , C #, and Java Source Codes
Project Overview http://astyle.sourceforge.net Sources, Binaries, Bug Tracker, Mailinglists http://www.sourceforge.net/projects/astyle/ Original Author Tal Davidson, Israel (tald@users.sourceforge.net) Maintainer Martin Baute, Germany (devsolar@sourceforge.net) Artistic Style is a reindenter and reformatter for C, C , C #, and Java source code. When indenting source code, we as programmers have a tendency to use both spaces and tab characters to create the wanted indentation. moreover, some editors by default insert spaces instead of tabs when pressing the tab key, and other editors (Emacs for example) have the ability to "pretty up" lines by automatically setting up the white space before the code on the line , possibly inserting spaces in a code that up to now used only tabs for indentation. Since the number of space characters showed on screen for each tab character in the source code changes between editors (unless the user sets up the number to his liking .. .), ONE of the standard d problems programmers are facing when moving from one editor to another is that code containing both spaces and tabs that was up to now perfectly indented, suddently becomes a mess to look at when changing to another editor. Even if you as a programmer take care to only use spaces or tabs, looking at other peoples source code can still be problematic To address this problem, Artistic Style was created -. a filter written in C , that automatically reindents & reformats C / C / C # / Java source files It can. BE USED from a commist line, or it can be incorporated in another C Program. The AStyle Executable IS Distributed Under The Terms of The GNU General Public License (GPL);