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

2

31

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:

enter image description here

Woozy answered 23/2, 2016 at 19:7 Comment(4)
checking preferences ->text editing -> completion tab may help. probably they added an option for completion types.Imaginable
Did you find a solution for this?Oldest
Still no solution, I remapped some #define constants into enumerated typesWoozy
New Auto-complete is so bad! for some reason container ranks higher than Starts with... Including when I am obviously typing an enum value into a typed expectation... It sill suggests crazy things.Trescott
G
1

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

Ginzburg answered 5/10, 2016 at 12:21 Comment(0)
C
0

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

Cataclysm answered 1/11, 2017 at 9:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.