自动完成领导点不工作迅速 [英] Autocomplete for leading dot doesn't work in swift

查看:153
本文介绍了自动完成领导点不工作迅速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用领导点语法中迅速我没有得到任何的自动完成建议。有没有自动完成该实施还是用我的X code(6.3.1版)?

When I try to use the "leading dot syntax" in swift I don't get any autocomplete suggestion. Is there no autocomplete for this implemented or is it a problem with my Xcode (Version 6.3.1)?

例如,当我尝试这样的事:

For example when I try something like this:

let col: UIColor? = .whiteColor()

我没有得到任何建议,任何方法我打了点之后,所以我写我自己的方法名称(这是什么还挺困难的,因为我不是很熟悉,斯威夫特现在)。

I don't get any suggestion for any method after I hit the dot, so I've to write the method name by myself (what's kinda hard because I'm not very familiar with Swift right now).

当我把它写像下面,自动完成正常工作

When I write it like following, the autocomplete works fine

let col: UIColor? = UIColor.whiteColor()

我已经试图删除〜/资源库/开发/ X code / DerivedData / * 〜/图书馆/缓存/ COM .apple.dt.X code ,但它并没有帮助。

I already tried to delete ~/Library/Developer/Xcode/DerivedData/* and ~/Library/Caches/com.apple.dt.Xcode but it didn't help.

所以,有没有自动完成为落实还是我做错了此功能?

So, is there no autocompletion for this feature implemented or am I doing something wrong?

编辑:我没有一个普遍的问题与自动完成,当我要调用带有前导点的静态方法或枚举就像上面的例子,这只是。其他一切工作正常。

I don't have a general problem with the autocompletion, it's only when I want to call a static method or an enum with a leading dot like in the example above. Everything else works fine.

推荐答案

我相信这是隐含的统计员和自动完成当前的一个问题。没有当前的X code编译或任何$ P $租赁前的建设修复了这个问题。我们只是要等到苹果发布新的测试版,如果是固定的,我会更新这个。

I believe this is an ongoing issue with implied enumerators and autocompletion. No current Xcode build nor any prerelease build fixes this problem. We just have to wait until Apple releases a new beta and I'll update this if it is fixed.

这篇关于自动完成领导点不工作迅速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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