Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable Xcode 8 code completion for image name

Tags:

Is there any way to disable code completion hints for image name in Xcode 8?

enter image description here

like image 868
Zigii Wong Avatar asked Sep 10 '16 09:09

Zigii Wong


2 Answers

According to the manual you can't select what the code completion shows and not, since the code completion shows all the assets that it has to the apps disposal in its surrounding context. If xcode thinks it should first provide you with images from the asset catalogue, it will unfortunately do so.

You can turn the code completion of in the text editing preferences or you can toggle the code completion on and off when typing with Control-Space bar and you can dismiss the code completion with the Escape key. If you turned the code completion off in the text editing preferences you can still turn them on with Control-Space bar.

like image 85
MacUserT Avatar answered Oct 01 '22 01:10

MacUserT


I created a snippet with the completion shortcut "in" that replaces itself with "in" to stop it from suggesting images when I'm trying to write a Swift closure. If you have other annoying use cases perhaps further snippets might help.

like image 43
JimRoepcke Avatar answered Oct 01 '22 00:10

JimRoepcke