XCode 7.3 beta - how to force strict search for code autocomplete for Objective-C?

本秂侑毒 提交于 2019-12-03 10:35:16

问题


I'm running into an issue where XCode 7.3 autocomplete searches all possible constants using some kind of weird pattern matching algorithm. The result is that I practically have to spell the entire constant name before autocomplete allows me to press "enter" to select the suggestion.

How can I force XCode to do old, strict "begins with" autocomplete search algorithm?

For example, attempting to search for constant kEditTag, I would expect it to show up once I type kEd..., while currently I have to type keditta, to have the suggestion even show up in the autocomplete list, making it rather useless:


回答1:


Please go to XCode -> Preferences -> Text Editing and "Enable type-over completions" . This should do the trick




回答2:


When start to type write 2 or 3 character so xcode can interprete what you want in completion. use ctrl + space



来源:https://stackoverflow.com/questions/35586056/xcode-7-3-beta-how-to-force-strict-search-for-code-autocomplete-for-objective

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!