Is there a way to turn off Xcode 8's autocomplete for image names?

前端 未结 3 1373
生来不讨喜
生来不讨喜 2020-12-24 01:48

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 d

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-24 02:20

    It seems to me that the best way to deal with this issue is by using comments (commmand + /). Changing the code to become a comment seems to turn off the autocomplete for image names.

    So, you would have basically to switch back and forth between commenting and uncommenting your code (e.g. you find an error, make your code as a comment, fix the error, uncomment your code, check if your changes fixed the issue, and so on.).

    Example of the same code with and without being a comment.

提交回复
热议问题