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: Rick Mann <email@hidden>
- Date: Thu, 26 Jun 2014 15:14:35 -0700
On Jun 26, 2014, at 15:05 , Alex Zavatone <email@hidden> wrote:
> Did you press capital D instead of lowercase d?
You can see in the video everything I typed. I almost certainly typed "d", not "D".
> But OK. I think I see what you're doing. Pressing tab at the point where a colon appears when you're typing out a method declaration completes the whole line - even when there are other options to choose from.
>
> While at that point, the up and down arrows work to change the auto complete option, but I have no idea how to start typing again to help auto complete narrow down the line it's trying to auto complete.
>
> Am I correctly interpreting what you're trying to do?
Yes.
>
> On Jun 26, 2014, at 4:56 PM, Rick Mann wrote:
>
>> I think we're talking about different things. Here's a movie showing what I'm facing. My key to invoke the autocompletion is option-tab. Note that I'm trying, in each case, to narrow the list of choices to something past "tableView:"
>>
>> http://cl.ly/1h280B131X0I/Completion.mov
>>
>>
>> On Jun 26, 2014, at 13:37 , Alex Zavatone <email@hidden> wrote:
>>
>>> 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
>>
>>
>> --
>> 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
--
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