Just came back to my desk and Xcode keeps highlighting/underlining white space in files. If I type something it goes away, but if I switch tabs and come back, they reappear.

UPDATE: this isn't caused by the "show invisibles" option. That looks different (try it).

enter image description here

有帮助吗?

解决方案

You seem to have a search active. Look in your search bar at the top and you should find a " " character. Xcode is highlighting all instances of the matching space character.

其他提示

Go to Editor > Hide Invisibles in the toolbar. It's showing all the invisible characters in the document, including spaces.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top