Is there any way to disable code completion hints for image name in Xcode 8?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With