Hi, im programming in my macbook pro and it doesnt have a curly brace. how can i program without its hard to copy and paste.
From the google search it seems a non-US keyboard could be missing the curly braces. It is just with mac or also with PC? I'm appalled at this omission. Programmers in other countries write C/C++ too!
I found a few images of French PC keyboards and some has the braces. Maybe time to get a USB keyboard with these symbols clearly marked.
Every PC keyboard that I have seen has the { and } available as shift/[ and shift/] but there may be exceptions
What do you get if you use Alt (or Option) and ( simultaneously on the Mac ?
The first few hits from Google took me to similar solutions - here's an example:
https://discussions.apple.com/thread/494659?start=0&tstart=0
You can also use trigraphs:
??< for { and ??> for }
KeithRB:
You can also use trigraphs:
??< for { and ??> for }
Just did that and it didn't work.
Another option would be to install TextExpander. With that you can define a symbol (or keyword) that TextExpander can replace with a curly brace.
KeithRB:
You can also use trigraphs:
By default gcc ignored trigraphs. I don't think the Arduino IDE gives any means to change the compilation options.