[ 
https://issues.apache.org/jira/browse/NETBEANS-6237?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rune Henning Johansen updated NETBEANS-6237:
--------------------------------------------
    Description: 
Writing Java with Apache NetBeans IDE 12.0. This is how I prefer it:
{quote}{{if ( condition1 )}}
{
    {{// …}}
{{}}}
else

{{if}}
{
    // …
}
{quote}
But with {{Source -> Format}} I can no longer avoid else and if on the same 
line:
{quote}{{if ( condition1 )}}
{
    {{// …}}
{{}}}
else {{if}}
{
    // …
}
{quote}
Any ideas about how to fix this?

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

  was:
Writing Java with Apache NetBeans IDE 12.0. This is how I prefer it:
{quote}{{if ( condition1 )}}
{
    {{// …}}
{{}}}
else

{{if}}
{{{}}
    // …
}
{quote}
But with {{Source -> Format}} I can no longer avoid else and if on the same 
line:
{quote}{{if ( condition1 )}}
{
    {{// …}}
{{}}}
else {{if}}
{{{}}
    // …
}
{quote}
Any ideas about how to fix this?

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


> 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
>            Priority: Minor
>
> Writing Java with Apache NetBeans IDE 12.0. This is how I prefer it:
> {quote}{{if ( condition1 )}}
> {
>     {{// …}}
> {{}}}
> else
> {{if}}
> {
>     // …
> }
> {quote}
> But with {{Source -> Format}} I can no longer avoid else and if on the same 
> line:
> {quote}{{if ( condition1 )}}
> {
>     {{// …}}
> {{}}}
> else {{if}}
> {
>     // …
> }
> {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: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to