简体   繁体   English

Xcode 7.2语法突出显示Swift文件中的闪烁

[英]Xcode 7.2 Syntax Highlighting flickering in Swift Files

When I write anything in a Swift file in Xcode 7, every time I enter an letter, a space or delete anything, the syntax highlighted words in the line go white and then back to their original color. 当我在Xcode 7中的Swift文件中写任何内容时,每次输入一个字母,一个空格或删除任何内容时,该行中突出显示的单词语法将变为白色,然后再返回其原始颜色。 I recorded a gif, better explaining, what I mean: 我录了一个gif,更好的解释,我的意思是:

窃听器

This first appeared, after I installed Alcatraz and a few plugins. 在我安装了恶魔岛和一些插件之后,这首次出现了。 After I noticed the bug, I removed all plugins and then Alcatraz, but the bug still existed. 在我注意到这个bug后,我删除了所有插件,然后删除了Alcatraz,但是bug仍然存在。 I also tried to delete the Derived Data folder as suggested in a few posts, but it didn't help. 我还尝试删除几个帖子中建议的Derived Data文件夹,但它没有帮助。

I also created a new project, but the error occurred there too. 我还创建了一个新项目,但也发生了错误。 Downloading Xcode 7.3 beta, didn't help too. 下载Xcode 7.3 beta,也没有帮助。

Is anyone having the same issue or knows, how to fix it? 是否有人有相同的问题或知道,如何解决它? It's really annoying. 真的很烦人。

I just tried to reproduce this bug and figured I have the same issue. 我只是试图重现这个错误,并认为我有同样的问题。 Since I don't use such high contrast colours for syntax highlighting, I didn't notice until now. 由于我没有使用如此高对比度的颜色进行语法高亮,我直到现在才注意到。

I presume it's not a bug only you are experiencing, so maybe you could try to file a bug report to Apple here . 我相信它不仅遇到了一个bug,所以也许你可以尝试提交Bug报告,苹果在这里

This appears to be a result of the constant syntax scanning done by the text engine as you type. 这似乎是在您键入时由文本引擎进行的常量语法扫描的结果。

If you find the effect objectionable, switch (for now) to the Default theme (or some other theme that has a white background) instead of the black background you're currently using; 如果您发现效果令人反感,请切换(现在)默认主题(或其他具有白色背景的主题),而不是您当前使用的黑色背景; it is not noticeable there. 那里不明显。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM