Artistic Style 2.02.1 This version to increase translation support. The definition of the bracket is redesigned to simplify the user interface: The predefined style option is changed to the Bracket style option, and bracket options is simplified. Several new bracket styles were added. UTF-16 encoded files (in the Visual Studio Standard) can now be formatted. Many other improvements and bug fixes.
Artistic style is a GNU typesetting tool. is a fast and small, open source c++,c++,c# and Java source code editing tools. Support Windows,linux,mac OS platform, can be used alone, can also embed the source insight and other IDE tools, very powerful.
The use of artistic style is as follows:
1. Single file: Astyle--style=ansi–s4-s-n-l-m0-m40-u--convert-tabs--suffix=.pre
--style=ansi mainly represents the location of the curly braces for the code, the other options, K&r, and so on, respectively, the corresponding shorthand is a1-a10.
-S4 represents four spaces indented and is also the default configuration
-S represents indentation for table switch statements
-N represents the indentation of a namespace
-L Indicates the indentation of the readable, goto corresponds to the
-M0 indicates that the condition expression is too long, the minimum indent of the next line to the previous line is 0 when wrapping is written
-M40 represents a line of unfinished statements (array assignment, multiple parameters), and the maximum indent for shelf is 40 for the next line
-U indicates that there are no spaces between the two ends of the parentheses
--convert-tabs means that the tab in the line that is not indented is converted to a space, and the tab in double quotes does not change
--suffix=.pre represents the suffix of the original file, which defaults to. Orig
HELLO.C files that require code formatting
2. Multiple Files:
Astyle--style=allman--recursive/home/user/project/*.cpp/home/user/project/*.h
3. Embed source INSIGHT3:
Click option-> Custom commands, click Add on the right, enter a name as prompted: Enter the command line in 1 in the Format with Astyle,run.
Note: hello.c to be changed to%f
Download Address: HTTP://SOURCEFORGE.NET/PROJECTS/ASTYLE/FILES/ASTYLE/ASTYLE%202.02.1/