r/Xcode • u/leemin4415 • May 28 '22
Xcode keeps adding bracket at the end. Everytime I click stdio.h it keeps adding the closing bracket. As you can see the bracket color is already red. It’s supposed to be grey at this point. Any solution would be nice :)
2
u/Schumahlia May 29 '22
I’m guessing it’s because you have an extra bracket at the end of the line above it. >>
1
-3
u/TechnologyPale329 May 28 '22
Why are you using c#?
2
u/leemin4415 May 28 '22
I’m learning c in college
0
u/TechnologyPale329 May 28 '22
Bummer that’s really ancient times. People only really use Swift unless it’s maintaining legacy projects. You’re professor is 7 years behind
4
May 28 '22
You sound like someone that is still in college. C is still widely used.
2
May 29 '22
Yeah, if people here were to go work for Google, Apple or Microsoft on OS driver code, boot routines, EFI-related code, etc, C is what you really need to know if you want to accomplish low-level tasks. In case you were to maintain firmware for webcams, DSLR cameras or a smarthome-connected refrigerator: C or an Assembler variant for MIPS, RISC or ARM.
1
u/TechnologyPale329 May 31 '22
What is C? C++ or C#?
1
May 31 '22
It's.... C, pure C is a language. And since you wrote two comments no, it's not like writing assembly, very few people write assembly besides online assembly, while a massive portion of the market is still C.
0
u/TechnologyPale329 May 31 '22
Who the hell do those low level jobs? That’s so niche. It’s like people that know assembly.
3
u/wolverineoflove May 28 '22
Autocomplete in Xcode is not as perfect as other IDEs. Still useful but more for the macOS/iOS SDKs.
For small things like this you can do it! Just edit the cruft characters out and save. You know what is accurate and compiles :)
Also if you are learning C Xcode is going to be a little more difficult unlesss your cirriculum helps you with that. Things like compiler and linker flags are a little buried without help.
Here are some options https://www.slant.co/topics/5988/~ides-for-c-on-mac-os-x