xcode syntax color coding explained?
Asked Answered
I

3

7

Can anyone give me a quick rundown of the color syntax meanings in xcode?

I am running into some problems and understanding the color coding I am sure will help me out. Currently I have some variables that are light blue and I think they need to be black but I am not sure of the difference?

masterViewController=[[UINavigationController alloc] initWithDestination: destination];

I believe my masterViewController here should be colored black and not the light blue it is currently colored - I am assuming I defined or initialized something wrong somewhere.

First day in xCode so I am pretty damn confused!

Inofficious answered 18/6, 2010 at 1:48 Comment(1)
looks like it has something to do with variable scope, I believe my problems lie with my variables being out of scopeInofficious
S
11

Go to: Xcode => Preferences => Fonts & Colors

You'll see that each syntax highlighting colour has a brief explanation next to it.

Sorehead answered 18/6, 2010 at 11:14 Comment(0)
J
2

In XCode 12.3 the heading is Themes rather than Fonts & Colours

Jerk answered 16/1, 2021 at 12:35 Comment(0)
I
0

As @Paul said, it's self-explaining in the Fonts & Colors

enter image description here

Infelicity answered 30/5, 2016 at 2:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.