Artistic Style 2.02.1 publishes a GNU typesetting tool

Source: Internet
Author: User
Keywords Gnu artistic typesetting tools
Tags added code files gnu source user user interface visual

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/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.