Rune Henning Johansen created NETBEANS-6237:
-----------------------------------------------

             Summary: How to get «if» and «else» on seperate lines using format 
in NetBeans?
                 Key: NETBEANS-6237
                 URL: https://issues.apache.org/jira/browse/NETBEANS-6237
             Project: NetBeans
          Issue Type: Improvement
    Affects Versions: 12.0
            Reporter: Rune Henning Johansen


Writing Java with Apache NetBeans IDE 12.0. This is how I prefer it:
{quote}{{{{if ( condition1 )}}}}
{{{}{{}}{}}}{{{}{{}}{}}}{{{}{{{}}{}}}
{{{{    }}}}{{{{// …}}}}{{{{}}}}
{{{{}}}}}{{{{
else}}}}
{{{{if ( condition2 )}}}}
{{{}{{}}{}}}{{{}{{}}{}}}{{{}{{{}}{}}}{{{}{{}}{}}}
{{{{    // …
}}}}{{{{}}}}}{quote}
But with {{Source -> Format}} I can no longer avoid else and if on the same 
line:
{quote}{{{{if ( condition1 )}}}}
{{{}{{}}{}}}{{{}{{}}{}}}{{{}{{{}}{}}}
{{{{    }}}}{{{{// …}}}}{{{{}}}}
{{{{}}}}}{{{{
else }}}}{{{{if ( condition2 )}}}}
{{{}{{}}{}}}{{{}{{}}{}}}{{{}{{{}}{}}}{{{}{{}}{}}}
{{{{    // …
}}}}{{{{}}}}}{quote}
Any ideas about how to fix this?

{color:#de350b}*PS:*{color}  Please, no lectures about how it should be done!  
;)



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to