代码完成下拉建议无法正常工作 Xcode 8.0 Swift 3 [英] Code completion drop down suggestions not working properly Xcode 8.0 Swift 3

查看:24
本文介绍了代码完成下拉建议无法正常工作 Xcode 8.0 Swift 3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在 Xcode 中编写代码时,我遇到了代码完成下拉建议菜单的问题.过去,您可以输入以下内容:

Im having a problem with the code completion drop down suggestion menu when you are writing code in Xcode. It used to be you could type something like:

button.frame = CGRect(

一旦你在这一点上而不是手动填写所有参数,代码完成建议下拉菜单应该出现并提供自动完成的建议,然后你只需点击适合你需要的一个,你最终得到类似于:(来自上面的示例)

and once your at this point instead of filling in all the arguments manually, the code completion suggestions drop down menu should appear and provide suggestions of auto completion then you simply just click on the one that suits your needs and you end up with something like: (from the example above)

button.frame = CGRect(x: CGFloat, y: CGFloat, width: CGFloat, height: CGFloat)

那么你所要做的就是简单地填写参数.由于某种原因,我从 Xcode 7.3.1 更新到最新版本 (Xcode 8) 后,我失去了这个惊人的功能;然而,Xcode 仍然显示代码完成建议下拉菜单,但它不一样,它只包含我编写的变量和与我正在编辑的对象无关的属性.

then all you have to do is simply fill in the parameters. After I updated from Xcode 7.3.1 to the latest version (Xcode 8) for some reason I lost this amazing feature; however, Xcode still shows the code completion suggestions drop down menu but it is not the same, it just contains variables that I have written and attributes that don't even pertain to the object that I am editing.

此外,Xcode 8.0 对我来说至少不再突出:属性、项目类名称、项目函数和方法名称、项目常量、项目类型名称、项目即时变量和全局变量,以及源代码编辑器中的其他类型很少.但是,关键字字符串数字类型仍然像更新前一样突出显示.

Further more, Xcode 8.0 for me at least no longer highlights: Attributes, Project Class Names, Project Function and Method Names, Project Constants, Project Type Names, Project Instant Variables and Globals, and a few other types in the source editor. However keywords, strings, and numerical types remain highlighted as before the update.

我曾尝试在首选项"选项卡中胡闹,但找不到可以解决这些令人沮丧的问题的选项.请帮忙!

I have tried monkeying around in the Preferences tab but I can not find options that will fix these frustrating issues. Please help!

推荐答案

应该只是暂时的问题:

清理你的 build/build 文件夹,重新打开 Xcode.它确保您的代码将再次编入索引,这用于实现快速语法突出显示和智能建议功能.

Clean your build / build folder, reopen Xcode. It ensures your code will be indexed again and this is used to result in quick syntax highlighting and smart suggestion features.

这篇关于代码完成下拉建议无法正常工作 Xcode 8.0 Swift 3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆