Tab cycles between method parameter

Hello

I tried to ident a method argument with TAB. But instead of identing the argument the cursor cycles between the parameter each time I press the TAB key.

First I thought this is an issue in the recent RC3.3 (143.380.24) but then I checked an older EAP and I get the same behaviour.

So my question is: is this the intended way it should work? And if so, is there a way to disable it?

Regards,
Stefan



Attachment(s):
AppCodeTabKey.mov
0

Hi Stefan.

Sorry for the delay. Could you please check that you don't have any additional shortcuts for Tab. You can do it via Preferences | Keymap - Find Actions by shortcut. Please attach the result of the searching.



Attachment(s):
Screen Shot 2015-11-11 at 17.33.26.png
0

Hey,

nice tip - I didn't know you can search for mapping by the key itself.

TAB is indeed mapped to "Ident Selection" and "Next Parameter" - which I guess is the default and the idea is that AppCode should be smart enough to detect when to use which. And it works most of the time:
If I place the cursor behind a ":" then on each TAB the cursor jumps behind the ":" of the next parameter.
If I place the cursor a couple of whitespaces before the name of the parmeter it will ident the rest of the line.

The thing that did confuse me was that if you place the cursor right in front of the name it will trigger a "Next Parameter" action instead of a "Ident Selection" action.
I attached a new video to illustrate the point.

Anyways, it's not a problem as I will just turn off the "Next Parameter" mapping.

Regards,
Stefan



Attachment(s):
TabKeyMapping.mov
TabKeyMapping.png
0

请先登录再写评论。