<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ultraedit.com/index.php?action=history&amp;feed=atom&amp;title=Astyle_reformat</id>
		<title>Astyle reformat - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ultraedit.com/index.php?action=history&amp;feed=atom&amp;title=Astyle_reformat"/>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Astyle_reformat&amp;action=history"/>
		<updated>2026-06-04T01:24:09Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>https://wiki.ultraedit.com/index.php?title=Astyle_reformat&amp;diff=1183&amp;oldid=prev</id>
		<title>Idmadmin at 13:02, 22 April 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Astyle_reformat&amp;diff=1183&amp;oldid=prev"/>
				<updated>2021-04-22T13:02:29Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039; lang=&#039;en&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:02, 22 April 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Coding tab]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Coding tab]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Astyle reformat&amp;#039;&amp;#039;&amp;#039; option in the &amp;quot;Coding&amp;quot; tab opens the &amp;#039;&amp;#039;&amp;#039;Artistic Style Formatter&amp;#039;&amp;#039;&amp;#039; dialog. Here you can adjust artistic style settings before reformatting / beautifying the active source file according to the parameters you set. The number of indent spaces passed to Artistic Style is based on the &amp;#039;&amp;#039;&amp;#039;Indent spaces&amp;#039;&amp;#039;&amp;#039; value set in [[Settings:Editor:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Word wrap&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;tab settings&lt;/del&gt;|Settings &amp;amp;raquo; Editor &amp;amp;raquo; Word wrap/tab settings]] (based upon extension of active file).&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Astyle reformat&amp;#039;&amp;#039;&amp;#039; option in the &amp;quot;Coding&amp;quot; tab opens the &amp;#039;&amp;#039;&amp;#039;Artistic Style Formatter&amp;#039;&amp;#039;&amp;#039; dialog. Here you can adjust artistic style settings before reformatting / beautifying the active source file according to the parameters you set. The number of indent spaces passed to Artistic Style is based on the &amp;#039;&amp;#039;&amp;#039;Indent spaces&amp;#039;&amp;#039;&amp;#039; value set in [[Settings:Editor:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Word_wrap_&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;_tab_settings&lt;/ins&gt;|Settings &amp;amp;raquo; Editor &amp;amp;raquo; Word wrap/tab settings]] (based upon extension of active file).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Reformat&amp;#039;&amp;#039;&amp;#039; button will apply the selected options/settings and reformat and beautify the active source file.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Reformat&amp;#039;&amp;#039;&amp;#039; button will apply the selected options/settings and reformat and beautify the active source file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Idmadmin</name></author>	</entry>

	<entry>
		<id>https://wiki.ultraedit.com/index.php?title=Astyle_reformat&amp;diff=470&amp;oldid=prev</id>
		<title>Idmadmin: Created page with &quot;Category:Coding tab The &#039;&#039;&#039;Astyle reformat&#039;&#039;&#039; option in the &quot;Coding&quot; tab opens the &#039;&#039;&#039;Artistic Style Formatter&#039;&#039;&#039; dialog. Here you can adjust artistic style settings befor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ultraedit.com/index.php?title=Astyle_reformat&amp;diff=470&amp;oldid=prev"/>
				<updated>2017-08-29T15:10:44Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/Category:Coding_tab&quot; title=&quot;Category:Coding tab&quot;&gt;Category:Coding tab&lt;/a&gt; The &amp;#039;&amp;#039;&amp;#039;Astyle reformat&amp;#039;&amp;#039;&amp;#039; option in the &amp;quot;Coding&amp;quot; tab opens the &amp;#039;&amp;#039;&amp;#039;Artistic Style Formatter&amp;#039;&amp;#039;&amp;#039; dialog. Here you can adjust artistic style settings befor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Coding tab]]&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Astyle reformat&amp;#039;&amp;#039;&amp;#039; option in the &amp;quot;Coding&amp;quot; tab opens the &amp;#039;&amp;#039;&amp;#039;Artistic Style Formatter&amp;#039;&amp;#039;&amp;#039; dialog. Here you can adjust artistic style settings before reformatting / beautifying the active source file according to the parameters you set. The number of indent spaces passed to Artistic Style is based on the &amp;#039;&amp;#039;&amp;#039;Indent spaces&amp;#039;&amp;#039;&amp;#039; value set in [[Settings:Editor:Word wrap/tab settings|Settings &amp;amp;raquo; Editor &amp;amp;raquo; Word wrap/tab settings]] (based upon extension of active file).&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;Reformat&amp;#039;&amp;#039;&amp;#039; button will apply the selected options/settings and reformat and beautify the active source file.&lt;br /&gt;
&lt;br /&gt;
[[File:Ultraedit artistic style.png]]&lt;br /&gt;
&lt;br /&gt;
===Indentation===&lt;br /&gt;
The following indentation options are available:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Control&lt;br /&gt;
!Function&lt;br /&gt;
|-&lt;br /&gt;
|Case&lt;br /&gt;
|indents &amp;#039;case X:&amp;#039; blocks from the &amp;#039;case X:&amp;#039; headers. Case statements not enclosed in blocks are NOT indented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;switch (foo)&lt;br /&gt;
{&lt;br /&gt;
    case 1:&lt;br /&gt;
        a += 1;&lt;br /&gt;
        break;&lt;br /&gt;
    case 2:&lt;br /&gt;
    {&lt;br /&gt;
        a += 2;&lt;br /&gt;
        break;&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;switch (foo)&lt;br /&gt;
{&lt;br /&gt;
    case 1:&lt;br /&gt;
        a += 1;&lt;br /&gt;
        break;&lt;br /&gt;
    case 2:&lt;br /&gt;
        {&lt;br /&gt;
            a += 2;&lt;br /&gt;
            break;&lt;br /&gt;
        }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Class&lt;br /&gt;
|indents &amp;#039;class&amp;#039; and &amp;#039;struct&amp;#039; blocks so that the blocks &amp;#039;public:&amp;#039;, &amp;#039;protected:&amp;#039; and &amp;#039;private:&amp;#039; are indented. The struct blocks are indented only if an access modifier is declared somewhere in the struct. The entire block is indented. This option is effective for C++ files only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;class Foo&lt;br /&gt;
{&lt;br /&gt;
public:&lt;br /&gt;
    Foo();&lt;br /&gt;
    virtual ~Foo();&lt;br /&gt;
};&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;class Foo&lt;br /&gt;
{&lt;br /&gt;
    public:&lt;br /&gt;
        Foo();&lt;br /&gt;
        virtual ~Foo();&lt;br /&gt;
};&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Inline comments&lt;br /&gt;
|indents C++ comments beginning in column one. By default C++ comments beginning in column one are not indented. This option will allow the comments to be indented with the code.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo()&lt;br /&gt;
{&lt;br /&gt;
// comment&lt;br /&gt;
    if (isFoo)&lt;br /&gt;
        bar();&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo()&lt;br /&gt;
{&lt;br /&gt;
    // comment&lt;br /&gt;
    if (isFoo)&lt;br /&gt;
        bar();&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Label&lt;br /&gt;
|adds extra indentation to labels so they appear 1 indent less than the current indentation, rather than being flushed to the left (the default).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo() {&lt;br /&gt;
    while (isFoo) {&lt;br /&gt;
        if (isFoo)&lt;br /&gt;
            goto error;&lt;br /&gt;
        ...&lt;br /&gt;
error:&lt;br /&gt;
        ...&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with indented &amp;#039;error:&amp;#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo() {&lt;br /&gt;
    while (isFoo) {&lt;br /&gt;
        if (isFoo)&lt;br /&gt;
            goto error;&lt;br /&gt;
        ...&lt;br /&gt;
    error:&lt;br /&gt;
        ...&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Namespace&lt;br /&gt;
|adds extra indentation to namespace blocks. This option has no effect on Java files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;namespace foospace&lt;br /&gt;
{&lt;br /&gt;
class Foo&lt;br /&gt;
{&lt;br /&gt;
    public:&lt;br /&gt;
        Foo();&lt;br /&gt;
        virtual ~Foo();&lt;br /&gt;
};&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;namespace foospace&lt;br /&gt;
{&lt;br /&gt;
    class Foo&lt;br /&gt;
    {&lt;br /&gt;
        public:&lt;br /&gt;
            Foo();&lt;br /&gt;
            virtual ~Foo();&lt;br /&gt;
    };&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Preprocessor&lt;br /&gt;
|indents multi-line preprocessor definitions ending with a backslash. Should be used with &amp;#039;&amp;#039;&amp;#039;Tabs -&amp;gt; Spaces&amp;#039;&amp;#039;&amp;#039; for proper results. Does a pretty good job, but cannot perform miracles in obfuscated preprocessor definitions. Without this option the preprocessor statements remain unchanged.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#define Is_Bar(arg,a,b) \&lt;br /&gt;
(Is_Foo((arg), (a)) \&lt;br /&gt;
|| Is_Foo((arg), (b)))&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;#define Is_Bar(arg,a,b) \&lt;br /&gt;
    (Is_Foo((arg), (a)) \&lt;br /&gt;
     || Is_Foo((arg), (b)))&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Switch&lt;br /&gt;
|indents &amp;#039;switch&amp;#039; blocks so that the &amp;#039;case X:&amp;#039; statements are indented in the switch block. The entire case block is indented.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;switch (foo)&lt;br /&gt;
{&lt;br /&gt;
case 1:&lt;br /&gt;
    a += 1;&lt;br /&gt;
    break;&lt;br /&gt;
case 2:&lt;br /&gt;
{&lt;br /&gt;
    a += 2;&lt;br /&gt;
    break;&lt;br /&gt;
}&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;switch (foo)&lt;br /&gt;
{&lt;br /&gt;
    case 1:&lt;br /&gt;
        a += 1;&lt;br /&gt;
        break;&lt;br /&gt;
    case 2:&lt;br /&gt;
    {&lt;br /&gt;
        a += 2;&lt;br /&gt;
        break;&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Max. instatement indent&lt;br /&gt;
|sets the maximum of # spaces to indent a continuation line. The # indicates a number of columns and must not be greater than 120. If no # is set, the default value of 40 will be used. A maximum of less than two indent lengths will be ignored. This option will prevent continuation lines from extending too far to the right. Setting a larger value will allow the code to be extended further to the right.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fooArray[] = { red,&lt;br /&gt;
         green,&lt;br /&gt;
         blue };&lt;br /&gt;
fooFunction(barArg1,&lt;br /&gt;
         barArg2,&lt;br /&gt;
         barArg3);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with larger value):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;fooArray[] = { red,&lt;br /&gt;
               green,&lt;br /&gt;
               blue };&lt;br /&gt;
fooFunction(barArg1,&lt;br /&gt;
            barArg2,&lt;br /&gt;
            barArg3);&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Min. conditional indent&lt;br /&gt;
|sets the minimal indent that is added when a header is built of multiple lines. This indent helps to easily separate the header from the command statements that follow. The value indicates a number of indents and is a minimum value. The indent may be greater to align with the data on the previous line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The valid values are:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;0&amp;#039;&amp;#039;&amp;#039;: no minimal indent. The lines will be aligned with the parenthesis on the preceding line.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;: indent at least one additional indent.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;: indent at least two additional indents.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039;: indent at least one-half an additional indent. This is intended for large indents (e.g. 8).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The default value is &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;, two additional indents.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;// default setting makes this non-bracketed code clear&lt;br /&gt;
if (a &amp;lt; b&lt;br /&gt;
        || c &amp;gt; d)&lt;br /&gt;
    foo++;&lt;br /&gt;
&lt;br /&gt;
// but creates an exaggerated indent in this bracketed code&lt;br /&gt;
if (a &amp;lt; b&lt;br /&gt;
        || c &amp;gt; d)&lt;br /&gt;
{&lt;br /&gt;
    foo++;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (when setting min. conditional indent = 0):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;// setting makes this non-bracketed code less clear&lt;br /&gt;
if (a &amp;lt; b&lt;br /&gt;
    || c &amp;gt; d)&lt;br /&gt;
    foo++;&lt;br /&gt;
&lt;br /&gt;
// but makes this bracketed code clearer&lt;br /&gt;
if (a &amp;lt; b&lt;br /&gt;
    || c &amp;gt; d)&lt;br /&gt;
{&lt;br /&gt;
    foo++;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Style===&lt;br /&gt;
&lt;br /&gt;
One of sixteen possible styles may be selected using the Style dropdown ( allman, ansi, bsd, break, java, attach, kr, stroustrup, whitesmith, banner, gnu, linux, hortsmann, otbs, pico, lisp). &lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|default&lt;br /&gt;
|If no bracket style option is set, the opening brackets will not be changed and closing brackets will be broken from the preceding line.&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
* allman&lt;br /&gt;
* ansi&lt;br /&gt;
* bsd&lt;br /&gt;
* break&lt;br /&gt;
&lt;br /&gt;
Allman style formatting/indenting uses broken brackets.&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
    if (isBar)&lt;br /&gt;
    {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
        return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
* java&lt;br /&gt;
* attach&lt;br /&gt;
|Java style formatting/indenting uses attached brackets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar) {&lt;br /&gt;
    if (isBar) {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
    } else&lt;br /&gt;
        return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|kr (Kernighan &amp;amp; Ritchie)&lt;br /&gt;
|Kernighan &amp;amp; Ritchie style formatting/indenting uses linux brackets. Brackets are broken from namespaces, classes, and function definitions. Brackets are attached to statements within a function.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
    if (isBar) {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
    } else&lt;br /&gt;
        return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|stroustrup&lt;br /&gt;
|Stroustrup style formatting/indenting uses stroustrup brackets. Brackets are broken from function definitions only. Brackets are attached to namespaces, classes, and statements within a function. This style frequently is used with an indent of 5 spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
     if (isBar) {&lt;br /&gt;
          bar();&lt;br /&gt;
          return 1;&lt;br /&gt;
     } else&lt;br /&gt;
          return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|whitesmith&lt;br /&gt;
|Whitesmith style formatting/indenting uses broken, indented brackets. Class blocks and switch blocks are indented to prevent a &amp;#039;hanging indent&amp;#039; with switch statements and C++ class modifiers (public, private, protected).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
    {&lt;br /&gt;
    if (isBar)&lt;br /&gt;
        {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
        }&lt;br /&gt;
    else&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|banner&lt;br /&gt;
|Banner style formatting/indenting uses attached, indented brackets. Class blocks and switch blocks are indented to prevent a &amp;#039;hanging indent&amp;#039; with switch statements and C++ class modifiers (public, private, protected).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar) {&lt;br /&gt;
    if (isBar) {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
        }&lt;br /&gt;
    else&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|gnu&lt;br /&gt;
|GNU style formatting/indenting uses broken brackets and indented blocks. This style frequently is used with an indent of 2 spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Extra indentation is added to blocks &amp;#039;&amp;#039;&amp;#039;within a function&amp;#039;&amp;#039;&amp;#039;. The opening bracket for namespaces, classes, and functions is not indented.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
  if (isBar)&lt;br /&gt;
    {&lt;br /&gt;
      bar();&lt;br /&gt;
      return 1;&lt;br /&gt;
    }&lt;br /&gt;
  else&lt;br /&gt;
    return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|linux&lt;br /&gt;
|Linux style formatting/indenting uses linux brackets. Brackets are broken from namespace, class, and function definitions. Brackets are attached to statements within a function. &amp;#039;&amp;#039;&amp;#039;Min. conditional indent&amp;#039;&amp;#039;&amp;#039; is one-half indent. If you want a different minimum conditional indent use the K&amp;amp;R style instead. This style works best with a large indent. It frequently is used with an indent of 8 spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also known as Kernel Normal Form (KNF) style, this is the style used in the Linux kernel.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
        if (isFoo) {&lt;br /&gt;
                bar();&lt;br /&gt;
                return 1;&lt;br /&gt;
        } else&lt;br /&gt;
                return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|horstmann&lt;br /&gt;
|Horstmann style formatting/indenting uses run-in brackets, brackets are broken and allow run-in statements. Switches are indented to allow a run-in to the opening switch block. This style frequently is used with an indent of 3 spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{  if (isBar)&lt;br /&gt;
   {  bar();&lt;br /&gt;
      return 1;&lt;br /&gt;
   } else&lt;br /&gt;
      return 0;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|otbs&lt;br /&gt;
|&amp;quot;One True Brace Style&amp;quot; formatting/indenting uses linux brackets and adds brackets to unbracketed one line conditional statements. In the following example brackets have been added to the &amp;quot;return 0;&amp;quot; statement. The option &amp;#039;&amp;#039;&amp;#039;add one line brackets&amp;#039;&amp;#039;&amp;#039; can also be used with this style.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{&lt;br /&gt;
    if (isFoo) {&lt;br /&gt;
        bar();&lt;br /&gt;
        return 1;&lt;br /&gt;
    } else {&lt;br /&gt;
        return 0;&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|pico&lt;br /&gt;
|Pico style formatting/indenting uses run-in brackets, opening brackets are broken and allow run-in statements. The closing bracket is attached to the last line in the block. Switches are indented to allow a run-in to the opening switch block. The style implies &amp;#039;&amp;#039;&amp;#039;keep one line blocks&amp;#039;&amp;#039;&amp;#039; and &amp;#039;&amp;#039;&amp;#039;keep one line statements&amp;#039;&amp;#039;&amp;#039;. This style does not support multiple-line brackets. If &amp;#039;&amp;#039;&amp;#039;add brackets&amp;#039;&amp;#039;&amp;#039; is used they will be added as &amp;#039;&amp;#039;&amp;#039;one line brackets&amp;#039;&amp;#039;&amp;#039;. This style frequently is used with an indent of 2 spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar)&lt;br /&gt;
{  if (isBar)&lt;br /&gt;
   {  bar();&lt;br /&gt;
      return 1; }    &lt;br /&gt;
    else&lt;br /&gt;
      return 0; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|lisp&lt;br /&gt;
|Lisp style formatting/indenting uses attached brackets, opening brackets are attached at the end of the statement. The closing bracket is attached to the last line in the block. The style implies &amp;#039;&amp;#039;&amp;#039;keep one line statements&amp;#039;&amp;#039;&amp;#039; but NOT &amp;#039;&amp;#039;&amp;#039;keep one line blocks&amp;#039;&amp;#039;&amp;#039;. This style does not support one line brackets. If &amp;#039;&amp;#039;&amp;#039;add one line brackets&amp;#039;&amp;#039;&amp;#039; is used they will be added as multiple-line brackets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;int Foo(bool isBar) {&lt;br /&gt;
    if (isBar) {&lt;br /&gt;
        bar()&lt;br /&gt;
        return 1; }&lt;br /&gt;
    else&lt;br /&gt;
        return 0; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Mode===&lt;br /&gt;
&lt;br /&gt;
This option is usually set from the file extension for each file. You can override the setting with this entry. It will be used for all files regardless of the file extension. It allows the formatter to identify language specific syntax such as C++ classes, templates, and keywords.&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
|c&lt;br /&gt;
|indents a C or C++ file&lt;br /&gt;
|-&lt;br /&gt;
|cs&lt;br /&gt;
|indents a C# file&lt;br /&gt;
|-&lt;br /&gt;
|java&lt;br /&gt;
|indents a Java file&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Options file===&lt;br /&gt;
&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;optional&amp;#039;&amp;#039;&amp;#039; default options file may be used to supplement or replace the dialog options.  The dialog options have precedence. If there is a conflict between a dialog option and an option in the default options file, the dialog option will be used.&lt;br /&gt;
&lt;br /&gt;
Artistic Style looks for this file in the following locations (in order):&lt;br /&gt;
# the file indicated by the &amp;#039;&amp;#039;&amp;#039;--options=&amp;#039;&amp;#039;&amp;#039; command line option as used if an options file is set in the dialog;&lt;br /&gt;
# the file and directory indicated by the environment variable &amp;#039;&amp;#039;&amp;#039;ARTISTIC_STYLE_OPTIONS&amp;#039;&amp;#039;&amp;#039; (if it exists);&lt;br /&gt;
# the file named &amp;#039;&amp;#039;&amp;#039;.astylerc&amp;#039;&amp;#039;&amp;#039; in the directory pointed to by the &amp;#039;&amp;#039;&amp;#039;HOME&amp;#039;&amp;#039;&amp;#039; environment variable (e.g. &amp;quot;$HOME/.astylerc&amp;quot; on Linux);&lt;br /&gt;
# the file named &amp;#039;&amp;#039;&amp;#039;astylerc&amp;#039;&amp;#039;&amp;#039; in the directory pointed to by the &amp;#039;&amp;#039;&amp;#039;USERPROFILE&amp;#039;&amp;#039;&amp;#039; environment variable (e.g. &amp;quot;%USERPROFILE%\astylerc&amp;quot; on Windows).&lt;br /&gt;
&lt;br /&gt;
===Formatting===&lt;br /&gt;
&lt;br /&gt;
The following formatting options are available:&lt;br /&gt;
&lt;br /&gt;
{|&lt;br /&gt;
!Control&lt;br /&gt;
!Function&lt;br /&gt;
|-&lt;br /&gt;
|Add brackets&lt;br /&gt;
|adds brackets to unbracketed one line conditional statements (e.g. &amp;#039;if&amp;#039;, &amp;#039;for&amp;#039;, &amp;#039;while&amp;#039;, ...). The statement must be on a single line. The brackets will be added according to the currently requested predefined style or bracket type. If no style or bracket type is requested the brackets will be attached. If &amp;#039;&amp;#039;&amp;#039;add one line brackets&amp;#039;&amp;#039;&amp;#039; is also used the result will be one line brackets.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo)&lt;br /&gt;
    isFoo = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo) {&lt;br /&gt;
    isFoo = false;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Add one line brackets&lt;br /&gt;
|adds one line brackets to unbracketed one line conditional statements (e.g. &amp;#039;if&amp;#039;, &amp;#039;for&amp;#039;, &amp;#039;while&amp;#039;, ...). The statement must be on a single line. The option implies &amp;#039;&amp;#039;&amp;#039;keep one line blocks&amp;#039;&amp;#039;&amp;#039; and will not break the one line blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo)&lt;br /&gt;
    isFoo = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo)&lt;br /&gt;
    { isFoo = false; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Align pointer&lt;br /&gt;
|attaches a pointer or reference operator (*, &amp;amp;, or ^) to either the variable type (left) or variable name (right), or place it between the type and name (middle). The spacing between the type and name will be preserved, if possible. This option is for C/C++, C++/CLI, and C# files. To format references separately use the following &amp;#039;&amp;#039;&amp;#039;align&amp;#039;&amp;#039;&amp;#039; reference option.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char* foo1;&lt;br /&gt;
char &amp;amp; foo2;&lt;br /&gt;
String ^s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with align pointer = type):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char* foo1;&lt;br /&gt;
char&amp;amp; foo2;&lt;br /&gt;
String^ s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char* foo1;&lt;br /&gt;
char &amp;amp; foo2;&lt;br /&gt;
String ^s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with align pointer = middle):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char * foo1;&lt;br /&gt;
char &amp;amp; foo2;&lt;br /&gt;
String ^ s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char* foo1;&lt;br /&gt;
char &amp;amp; foo2;&lt;br /&gt;
String ^s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with align pointer = name):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char *foo1;&lt;br /&gt;
char &amp;amp;foo2;&lt;br /&gt;
String ^s1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Align reference&lt;br /&gt;
|aligns references separate from pointers. Pointers are not changed by this option. If pointers and references are to be aligned the same, use the previous &amp;#039;&amp;#039;&amp;#039;align pointer&amp;#039;&amp;#039;&amp;#039; option. The align reference option with value none will not change the reference alignment. The other options are the same as for &amp;#039;&amp;#039;&amp;#039;align pointer&amp;#039;&amp;#039;&amp;#039;. This option is for C/C++, C++/CLI, and C# files.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char &amp;amp;foo1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with align reference = type):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char&amp;amp; foo1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char&amp;amp; foo2;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with align reference = middle):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char &amp;amp; foo2;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char&amp;amp; foo3;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
becomes (with align reference = name):&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;char &amp;amp;foo3;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Break after logical&lt;br /&gt;
|The option &amp;#039;&amp;#039;&amp;#039;max. code length&amp;#039;&amp;#039;&amp;#039; will break a line if the code exceeds # characters. The valid values are &amp;#039;&amp;#039;&amp;#039;50&amp;#039;&amp;#039;&amp;#039; thru &amp;#039;&amp;#039;&amp;#039;200&amp;#039;&amp;#039;&amp;#039;. Lines without logical conditionals will break on a logical conditional (&amp;lt;nowiki&amp;gt;||&amp;lt;/nowiki&amp;gt; , &amp;amp;&amp;amp;, ...), comma, parenthesis, semicolon, or space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some code will not be broken, such as comments, quotes, and arrays. If used with &amp;#039;&amp;#039;&amp;#039;keep one line blocks&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;add one line brackets&amp;#039;&amp;#039;&amp;#039; the blocks will NOT be broken. If used with keep one line statements the statements will be broken at a semicolon if the line goes over the maximum length. If there is no available break point within the max code length, the line will be broken at the first available break point after the max code length.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default logical conditionals will be placed first on the new line. The option &amp;#039;&amp;#039;&amp;#039;break after logical&amp;#039;&amp;#039;&amp;#039; will cause the logical conditionals to be placed last on the previous line. This option has no effect without &amp;#039;&amp;#039;&amp;#039;max. code length&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (thisVariable1 == thatVariable1 || thisVariable2 == thatVariable2 || thisVariable3 == thatVariable3)&lt;br /&gt;
    bar();&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (thisVariable1 == thatVariable1&lt;br /&gt;
        || thisVariable2 == thatVariable2&lt;br /&gt;
        || thisVariable3 == thatVariable3)&lt;br /&gt;
    bar();&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with break after logical):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (thisVariable1 == thatVariable1 ||&lt;br /&gt;
        thisVariable2 == thatVariable2 ||&lt;br /&gt;
        thisVariable3 == thatVariable3)&lt;br /&gt;
    bar();&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Break else if()&lt;br /&gt;
|breaks &amp;#039;else if&amp;#039; header combinations into separate lines. This option has no effect if &amp;#039;&amp;#039;&amp;#039;keep one line statements&amp;#039;&amp;#039;&amp;#039; is used, the &amp;#039;else if&amp;#039; statements will remain as they are. If this option is NOT used, &amp;#039;else if&amp;#039; header combinations will be placed on a single line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
}&lt;br /&gt;
else if (isFoo1()) {&lt;br /&gt;
    bar1();&lt;br /&gt;
}&lt;br /&gt;
else if (isFoo2()) {&lt;br /&gt;
    bar2;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
    if (isFoo1()) {&lt;br /&gt;
        bar1();&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
        if (isFoo2()) {&lt;br /&gt;
            bar2();&lt;br /&gt;
        }&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Break blocks&lt;br /&gt;
|The &amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039; option pads empty lines around header blocks (e.g. &amp;#039;if&amp;#039;, &amp;#039;for&amp;#039;, &amp;#039;while&amp;#039;, ...).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;isFoo = true;&lt;br /&gt;
if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
} else {&lt;br /&gt;
    anotherBar();&lt;br /&gt;
}&lt;br /&gt;
isBar = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;isFoo = true;&lt;br /&gt;
&lt;br /&gt;
if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
} else {&lt;br /&gt;
    anotherBar();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
isBar = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; option pads empty lines around header blocks (e.g. &amp;#039;if&amp;#039;, &amp;#039;for&amp;#039;, &amp;#039;while&amp;#039;, ...). Treat closing header blocks (e.g. &amp;#039;else&amp;#039;, &amp;#039;catch&amp;#039;) as stand-alone blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;isFoo = true;&lt;br /&gt;
if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
} else {&lt;br /&gt;
    anotherBar();&lt;br /&gt;
}&lt;br /&gt;
isBar = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;isFoo = true;&lt;br /&gt;
&lt;br /&gt;
if (isFoo) {&lt;br /&gt;
    bar();&lt;br /&gt;
    &lt;br /&gt;
} else {&lt;br /&gt;
    anotherBar();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
isBar = false;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Close templates&lt;br /&gt;
|closes whitespace in the angle brackets of template definitions. Closing the ending angle brackets is now allowed by the C++11 standard. Be sure your compiler supports this before making the changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Stack&amp;lt; int,List&amp;lt; int &amp;gt; &amp;gt; stack1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;Stack&amp;lt;int,List&amp;lt;int&amp;gt;&amp;gt; stack1;&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Empty lines&lt;br /&gt;
|The delete option deletes empty lines within a function or method. Empty lines outside of functions or methods are NOT deleted. If used with &amp;#039;&amp;#039;&amp;#039;break blocks&amp;#039;&amp;#039;&amp;#039; with &amp;#039;&amp;#039;&amp;#039;default&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;all&amp;#039;&amp;#039;&amp;#039; it will delete all lines EXCEPT the lines added by the &amp;#039;&amp;#039;&amp;#039;break blocks&amp;#039;&amp;#039;&amp;#039; options.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo()&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
    foo1 = 1;&lt;br /&gt;
&lt;br /&gt;
    foo2 = 2;&lt;br /&gt;
&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;void Foo()&lt;br /&gt;
{&lt;br /&gt;
    foo1 = 1;&lt;br /&gt;
    foo2 = 2;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The fill option fills empty lines with the white space of the previous line.&lt;br /&gt;
|-&lt;br /&gt;
|Keep one line blocks&lt;br /&gt;
|will not break one line blocks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo)&lt;br /&gt;
{ isFoo = false; cout &amp;lt;&amp;lt; isFoo &amp;lt;&amp;lt; endl; }&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
remains unchanged.&lt;br /&gt;
|-&lt;br /&gt;
|Keep one line statements&lt;br /&gt;
|will not break complex statements and multiple statements residing on a single line.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo)&lt;br /&gt;
{&lt;br /&gt;
    isFoo = false; cout &amp;lt;&amp;lt; isFoo &amp;lt;&amp;lt; endl;&lt;br /&gt;
}&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
remains unchanged.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo) DoBar();&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
remains also unchanged.&lt;br /&gt;
|-&lt;br /&gt;
|Max code length&lt;br /&gt;
|The option &amp;#039;&amp;#039;&amp;#039;max code length&amp;#039;&amp;#039;&amp;#039; will break a line if the code exceeds # characters. The valid values are 50 thru 200. Lines without logical conditionals will break on a logical conditional (&amp;lt;nowiki&amp;gt;||&amp;lt;/nowiki&amp;gt;, &amp;amp;&amp;amp;, ...), comma, parenthesis, semicolon, or space.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Some code will not be broken, such as comments, quotes, and arrays. If used with &amp;#039;&amp;#039;&amp;#039;keep one line blocks&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;add one line brackets&amp;#039;&amp;#039;&amp;#039; the blocks will NOT be broken. If used with &amp;#039;&amp;#039;&amp;#039;keep one line statements&amp;#039;&amp;#039;&amp;#039; the statements will be broken at a semicolon if the line goes over the maximum length. If there is no available break point within the max code length, the line will be broken at the first available break point after the max code length.&lt;br /&gt;
|-&lt;br /&gt;
|Space padding&lt;br /&gt;
|There are several padding options available:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;first-paren-out&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding around the first parenthesis in a series on the outside only. Any end of line comments will remain in the original column, if possible. This can be used with &amp;#039;&amp;#039;&amp;#039;unpad-paren&amp;#039;&amp;#039;&amp;#039; below to remove unwanted spaces. If used with &amp;#039;&amp;#039;&amp;#039;pad-paren&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;pad-paren-out&amp;#039;&amp;#039;&amp;#039;, this option will be ignored. If used with &amp;#039;&amp;#039;&amp;#039;pad-paren-in&amp;#039;&amp;#039;&amp;#039;, the result will be the same as &amp;#039;&amp;#039;&amp;#039;pad-paren&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo ((a+2), b))&lt;br /&gt;
    bar (a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;oper&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding around operators. Any end of line comments will remain in the original column, if possible. Note that there is no option to unpad. Once padded, they stay padded.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (foo==2)&lt;br /&gt;
    a=bar((b-c)*a,d--);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (foo == 2)&lt;br /&gt;
     a = bar((b - c) * a, d--);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;paren&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding around parenthesis on both the outside and the inside. Any end of line comments will remain in the original column, if possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if ( isFoo ( ( a+2 ), b ) )&lt;br /&gt;
    bar ( a, b );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;paren-in&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding around parenthesis on the &amp;#039;&amp;#039;&amp;#039;inside&amp;#039;&amp;#039;&amp;#039; only. Any end of line comments will remain in the original column, if possible. This can be used with unpad-paren below to remove unwanted spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if ( isFoo( ( a+2 ), b ) )&lt;br /&gt;
    bar( a, b );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;paren-out&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding around parenthesis on the &amp;#039;&amp;#039;&amp;#039;outside&amp;#039;&amp;#039;&amp;#039; only. Any end of line comments will remain in the original column, if possible. This can be used with &amp;#039;&amp;#039;&amp;#039;unpad-paren&amp;#039;&amp;#039;&amp;#039; below to remove unwanted spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo ( (a+2), b) )&lt;br /&gt;
    bar (a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;header&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
inserts space padding after parenthesis headers only (e.g. &amp;#039;if&amp;#039;, &amp;#039;for&amp;#039;, &amp;#039;while&amp;#039;, ...). Any end of line comments will remain in the original column, if possible. This can be used with &amp;#039;&amp;#039;&amp;#039;unpad-paren&amp;#039;&amp;#039;&amp;#039; to remove unwanted spaces.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if (isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;unpad-paren&amp;#039;&amp;#039;&amp;#039;&amp;lt;br&amp;gt;&lt;br /&gt;
removes extra space padding around parenthesis on the inside and outside. Any end of line comments will remain in the original column, if possible. This option can be used in combination with the parenthesis padding options &amp;#039;&amp;#039;&amp;#039;paren&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;paren-out&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;paren-in&amp;#039;&amp;#039;&amp;#039;, and &amp;#039;&amp;#039;&amp;#039;header&amp;#039;&amp;#039;&amp;#039; above. Only padding that has not been requested by other options will be removed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For example, if a source has parenthesis padded on both the inside and outside, and you want inside only. You need to use &amp;#039;&amp;#039;&amp;#039;unpad-paren&amp;#039;&amp;#039;&amp;#039; to remove the outside padding, and &amp;#039;&amp;#039;&amp;#039;paren-in&amp;#039;&amp;#039;&amp;#039; to retain the inside padding. Using only &amp;#039;&amp;#039;&amp;#039;paren-in&amp;#039;&amp;#039;&amp;#039; would not remove the outside padding.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if ( isFoo( ( a+2 ), b ) )&lt;br /&gt;
    bar ( a, b );&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
becomes (with no padding option requested):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;if(isFoo((a+2), b))&lt;br /&gt;
    bar(a, b);&amp;lt;/pre&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|Tabs -&amp;gt; Spaces&lt;br /&gt;
|converts tabs into spaces in the non-indentation part of the line. The number of spaces inserted will maintain the spacing of the tab. The current setting for spaces per tab is used. It may not produce the expected results if this option is used when changing spaces per tab. Tabs are not replaced in quotes.&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Idmadmin</name></author>	</entry>

	</feed>