有没有办法关闭 Xcode 8 的图像名称自动完成功能? [英] Is there a way to turn off Xcode 8's autocomplete for image names?

查看:32
本文介绍了有没有办法关闭 Xcode 8 的图像名称自动完成功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 8 有这个新功能,当你使用 UIImage(named:)

时,它应该会建议图像文件名

就我而言,即使它没有任何意义,它也会建议图像名称.

示例:

偏好中没有任何内容.我想知道是否有一些秘密命令可以禁用这部分自动完成.

解决方案

不,遗憾的是无法关闭此功能,并且没有任何内容表明 Xcode 8.1 发行说明中已修复此问题.>

它应该被修复,或者您应该有机会将其关闭.正如我在

更新

这似乎在 Xcode 10 中得到了修复.

Xcode 8 has this new feature that is supposed to suggest image file names when you use UIImage(named:)

In my case it suggests image names even when it doesn't make any sense.

Example:

There is nothing in preferences. I wonder if there is some secret command to disable this part of autocompletion.

解决方案

No this unfortunately can't be turned off, and nothing states that this is fixed in the Xcode 8.1 Release Notes.

It should either be fixed or you should have the opportunity to turn it off. The functionality is kind of good when it´s used for it´s purpose only, as I describe in this post.

But the issue is that Xcode 8 is inserting images inline in source when it can't possibly make any sense as you mention. For example, if you have a for iteration and type for x in to start a loop and you have any image in the project whose name matches "in" using this syntax.

Annoying issue, that I hope Apple will fix soon, because the feature is good when it´s used for images only.

Update:
Just confirmed that this is still an issue in Xcode 8.1 stable version.

Update:
This functionality remains in Xcode Version 9.0 beta 6 (9M214v)

Update

This seems to be fixed in Xcode 10 now.

这篇关于有没有办法关闭 Xcode 8 的图像名称自动完成功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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