Problems with Xcode Syntax Highlighting

浪尽此生 提交于 2019-12-20 03:19:55

问题


In Xcode 3.2.1 I have this problem where it stops highlighting Objects in purple, and such. For example:

In that example, NSAutoreleasePool, pool, img, size, width and height should be highlighted, however, they are not. Here is a screenshot of what that looks like.

Anyone know how to fix this?

Edit: Also, code sense isn't showing correct options.


回答1:


Xcode is often glitchy for me in similar ways. Restarting xcode often clears up the issue. Also, sometimes a missing semi-colon or curly brace will keep codeSense and highlighting from working as you want it to. Try Opt-B (build) to see if you have any errors that could be causing this.




回答2:


I noticed that opening projects from the XCode welcome screen causes this issue. If I dismis the welcome screen and then go file open (or file open recent) and open the project that way the syntax highlighting works



来源:https://stackoverflow.com/questions/2263994/problems-with-xcode-syntax-highlighting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!