Programming Thread

Viewing single post

Started by the-pi-guy, Mar 13, 2016, 10:39 PM

previous topic - next topic

darkknightkryta

You can do the same thing with the other format.  You just match it with the start of the line that connects it.


Code: [Select]

public static void main(stuff){
      for(stuff){
             if(stuff){

             }


      }
}


A lot of IDEs still tell you if one is missing.  Not always accurately, albeit.  
Look very carefully at your first example.  The top doesn't line up at all with the bottom.  Now imagine programs with worse formatting.  I've spent more time hunting down brackets than anything.  Having them lined up helps a ton.