Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Formatting If Statements

$
0
0

Has anyone found a combination of formatting options that will turn:

 

        if (2 < 3) {            return;        }elseif (2 > 3) {            return;        }else{            return;        }

 

Into

 

        if (2 < 3)             return;        elseif (2 > 3)            return;        else            return;        

 

Of course never this:

 

        if (2 < 3)             if (2 > 3)                 return;             else                 return;            

 

Which should always be bracketed

 

        if (2 < 3) {             if (2 > 3)                 return;             else                 return;        }    

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>