9

After one day my code loses its highlight / completion again in xCode 6.

As always, I tried to Organizer > Projects > and Delete Derived Data. Which did not work in Xcode 6, even after it finish to index everything.

I tried to uninstall and install 3 times - and its still coming back after some time.

I really can't find why Xcode loses it.

Any help will be appreciated.

PizzaByte
  • 131
  • 1
  • 6

2 Answers2

6

Syntax highlighting and code completion can sometimes only work on part of the file too, and it happens during the editing or on a random basis.

I fix this by cleaning the project... not a sexy solution, but it works.

ofavre
  • 4,488
  • 2
  • 26
  • 23
0

I think it's a bug in some Xcode versions, I have it on Xcode 6.4 and the only solution I found is to open Editor menu -> Syntax coloring -> Choose None then Editor menu -> Syntax coloring -> Default for filetype.

PS: cleaning the project didn't solve the problem for me.

Omaty
  • 425
  • 5
  • 14