DerrickHo328
DerrickHo328

Reputation: 4886

Xcode 6 Swift partial auto complete methods

When I use Objective-c I can write a method half way and then have the ability to continue to complete it after the fact.

For example if I want to make NSIndexPath

[NSIndexPath indexPathForRow:1 inSection:5]

I can write

[NSIndexPath indexPathForRow:1 in

and Xcode will initiate the auto complete options box for the second half of the method call. And if it doesn't I can press esc to make the autocomplete options box show up.

however, with swift, there does not seems to be this feature.

NSIndexPath(forRow:1, in

If I type the above in swift, it does not autocomplete the desired method.

Is this feature available at all for swift?

Upvotes: 0

Views: 296

Answers (2)

DerrickHo328
DerrickHo328

Reputation: 4886

There are Xcode plugins for this. I like to use the fuzzyautocomplete because you can write partial methods. It uses the same tool that "open quickly" uses to find these methods.

https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin

You can also get this plugin (and more) from.

http://alcatraz.io

Upvotes: 0

vale
vale

Reputation: 1436

I find that autocomplete for swift is really so far behind objective-c autocompletion. Hopefully they're going to improve it with each release, it's already a lot better than what it was a few months ago. On top of that swift error messages are let say 'more than confusing' at times.

Upvotes: 1

Related Questions