All apps/Artistic Style

Artistic Style

astyle

A source code indenter, formatter, and beautifier for the C, C++, C++/CLI, Objective-C, C# and Java programming languages.

Runs as astyle|macOS, Linux, Windows|astyle.sourceforge.net

Command form

ai-draft · 2 tasks · 11 fields

Reformat C, C++, C#, Java or Objective-C files in place with Artistic Style. Keeps a .orig backup unless disabled. Only the common style options are covered.

Opens the form; the finished command lands at your prompt, unrun
otty gui astyle
Format source codeExample values, fixed in this page — nothing here reaches a terminal
Basic
Source files*
any
Brace style
5 choicesenum
Indent with spaces
integer
Advanced
Pad operators
--pad-oper
Do not keep .orig backup
--suffix=none
TasksEach one presets the form for one job
Format files
filesstyleindent_spacespad_operno_backup
Preview changes
filesstyleindent_spacesdry_runrecursive
ParametersOnly these flags are editable in the form
Source files
Files or wildcards. With recursive, use a wildcard such as "src/*.cpp".
path · positional 0 · repeatable
Brace style
enum
--styleallmanjavakrstroustrupgoogle
Indent with spaces
Spaces per indent, 2 to 20.
integer
--indent=spaces
Pad operators
boolean
--pad-oper-p
Pad after if/for/while
boolean
--pad-header-H
Blank lines around blocks
boolean
--break-blocks-f
Add braces to one-line statements
boolean
--add-braces-j
Do not keep .orig backup
boolean
--suffix=none-n
Recurse into directories
boolean
--recursive-r
Dry run
boolean
--dry-run
Options file
path
--options
SourcesEvery flag above is checked against these
manual
astyle [OPTIONS] SourceFilePath --style=allman / --style=bsd / --style=break / -A1 --style=java / --style=attach / -A2 --style=kr / --style=k&r / --style=k/r / -A3 --style=stroustrup / -A4 --style=google / -A14 style=whitesmith style=vtk style=ratliff style=gnu style=linux style=horstmann style=1tbs style=mozilla style=webkit style=pico style=lisp --indent=s…
manual2026-10-27

astyle.sourceforge.net

Before it fills your prompt, Otty checks the installed astyle against its version. A form that does not match your version is not offered.