Artistic style

from Wikipedia, the free encyclopedia
astyle (Artistic Style)
Basic data

Maintainer Jim Pattee
Current  version 3.1
(January 2018)
operating system Linux , Microsoft Windows , Mac OS X , OpenVMS
programming language C ++
category Source code formatting
License MIT ( Free Software )
German speaking No
astyle.sf.net

Artistic Style ( astyle for short ) is a free command line program for source code formatting .

functionality

Artistic Style can format source text in the languages C , C ++ , Objective-C , C # and Java . This formatting only affects stylistic aspects of the source text such as indentation , white space, line breaks and optional brackets; The structure and names of program elements remain unchanged.

The user can freely determine the indentation style to be used within the scope of the options available; it is possible, for example, to give opening and closing brackets a separate line of code ( Allman style ). astyle offers common combinations of options as so-called styles .

The program can be called from the command line. The file name of the source text file to be formatted is passed as a parameter ; recursive processing of directory structures is also possible. Astyle can read the options for the formatting either from a settings file or from the list of transferred parameters. If these options are not specified, only the indentation of the source text is standardized. The formatted code is automatically saved and a backup copy of the original file is made.

distribution

Artistic Style is an integral part of some IDEs such as KDevelop , Code :: Blocks and Orwell Dev-C ++ , there is a plugin for Eclipse .

Because of the way it is operated, astyle can also be integrated into most common code editors as an external program.

Web links

Individual evidence

  1. “Not specifying any option will result in 4 spaces per indent, no change in bracket placement, and no formatting changes.” Artistic Style: Options
  2. KDevelop - 3.5.x features
  3. Dev-C ++ 5.9.0 released
  4. Astyle Eclipse