how to complete code just ONE "tab"?

new to Xcode... if you want to complete the code when the struct's method without second Capital , like "array.last", it's ok. But if you want to complete the one like "array.endIndex", you have to hit the "tab" key two times... the first tab only complete "end", and the next tab complete "Index", but I don't like it... how to complete complex code just ONE tab, just like vs code?? thanks

xCode enable completion up to the next possibility.

Welcome to the forum.

If you type array.en then tab, autocompletion proposes 2 options:

  • endIndex
  • enumerated()

It has no way to guess which one to select, so it les you select or continue with the first option with a second tab.

It is a very good thing.

.

 just like vs code

What do you mean ?

how to complete code just ONE "tab"?
 
 
Q