Go Down

Topic: } Error with code (Read 3078 times) previous topic - next topic

Docedison

Ctrl T is the IDE autoformat tool and If you use it frequently
 and you miss a curly brace.. This message will show just above the compiler output window.\
Autoformat failed; Too Many 'Right' / 'Left' Curly Braces.
left is the opening one and right is the closing curly brace..

Doc
--> WA7EMS <--
"The solution of every problem is another problem." -Johann Wolfgang von Goethe
I do answer technical questions PM'd to me with whatever is in my clipboard

UKHeliBob

Quote
[font=TyponineSans Regular 18] there are "helpers" now that highlight the matching opening or closing bracket if you select one. [/font]
Helpers or not, I find that putting each brace on its own line and indenting the code between them much easier, but at least we have the choice.
Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

SurferTim

@UKHeliBob: I still use that "brace on its own line" format if working with complex code. My web client example has the braces on their own line for ease of reading and checking for mismatched braces.
http://playground.arduino.cc/Code/WebClient

Go Up