Re: Code completion, selecting method name past the colon?
Re: Code completion, selecting method name past the colon?
- Subject: Re: Code completion, selecting method name past the colon?
- From: Alex Zavatone <email@hidden>
- Date: Thu, 26 Jun 2014 16:37:35 -0400
I think I just did.
Either that or when the item after the colon is highlighted, you then can tab past it.
I was just typing out this as a test:
[self performSegueWithIdentifier:mySelectedItem sender:self];
Here is how I did it.
Don't start typing the [
Start by typing as so
press s
press tab or return to allow completion to get self
press the space bar
press p
press tab
press seg
press return.
The text after the colon is selected. In my world, it is (NSString *).
Press Tab.
The next argument is selected. In my world, it is (id).
Press Shift Tab. The previous argument is selected. (NSString *) again.
Was this what you were looking for?
When the arguments are selected, you can always press the left an right arrows to move the cursor, but I admit, this is a black art that we must decipher. I never know when to start typing something with the bracket or if I should ignore the bracket.
Cheers.
On Jun 26, 2014, at 4:27 PM, Rick Mann wrote:
> Yeah, but try tabbing past the first colon.
>
> Or try typing past the first colon.
>
> On Jun 26, 2014, at 13:06 , Alex Zavatone <email@hidden> wrote:
>
>> I think it's tab or enter/return that brings you (you being the I-beam cursor or insertion point) to the next element in the autocomplete process.
>>
>> Tab moves forwards and the Return/Enter key accepts the currently highlighted text option.
>>
>> Heey. Shift Tab moves back in the auto completion colon sequence.
>>
>> Well, what do you know?
>>
>> On Jun 26, 2014, at 2:59 PM, Rick Mann wrote:
>>
>>> I may just be dumb, but is there any way to type-select or code complete a method name past the first colon? When I go to implement a UITableViewDataSource method like -tableView:cellFor..., I can type -tableview and invoke the completion list, but I can't type or tab past the colon to refine the list. That list is very long, and it's hard to scan through it because none of the stems are the same length, so none of the unique tails line up vertically.
>>>
>>> Is there some magic key incantation I'm unaware of?
>>>
>>>
>>> --
>>> Rick
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Do not post admin requests to the list. They will be ignored.
>>> Xcode-users mailing list (email@hidden)
>>> Help/Unsubscribe/Update your Subscription:
>>>
>>> This email sent to email@hidden
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Xcode-users mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
> --
> Rick
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden