8的图像名称自动完成功能

8的图像名称自动完成功能

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

问题描述

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



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

在我的情况下,即使它没有任何意义,也会建议图像名称。



示例:





首选项中没有任何内容。我想知道是否有一些秘密命令来禁用这部分自动完成。

解决方案

不,不幸的是不能这样做关闭了,没有任何声明在Xcode 8.1发行说明中修复了这个问题



它应该被修复,或者你应该有机会把它关掉关闭。如果我仅在


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)

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

08-04 14:50