some questions about auto-completion

Granted i am working on a 'slow' top of the line MBP, auto-completion gets in the way sometimes

  • Here is an example. ApppCode offers me the only available option when i finished typing. Is it possible to alter that behaviour so that no 'offering' be offered , this way i would not have to escape out of this (which takes 1+ second), after the offering (which blocks me for another 1 second).



Screen Shot 2014-09-29 at 11.36.08 AM.png

  • Another example, while renaming an iVar. Same comment, it takes a long time to come up with the list, and i have to escape out of it every time (basically, the offerings are almost systematicall _ 99% _ not what i would have in mind as a new name. Is it possible to stop AppCode to offer me new names suggestions ?

Screen Shot 2014-09-29 at 11.44.11 AM.png

  • An finally (a bug ?). When using a 'defined' macro like this

 
#define GAME_PLAYGRID [GEPlayGrid sharedPlayGrid]
 
Screen Shot 2014-09-29 at 11.48.38 AM.png

i think the carret should be inside the closing bracket. As it stands, i have to edge into the carret, space and enter the appropriate method i want to invoke.

5 comments
Comment actions Permalink

Hello Yves.

1) if you keep typing the popup will be closed automatically. To prevent it from showing it's necessary to check all variants anyway so this won't accelerate anything. Am I missing something?

2) It is currently not possible to turn this off. If it really bothers you please report this on tracker - we'll think about yet another option.

3) It seems I can't  reproduce your example with 3.0.5. I'm typing

GAME_PLAYGRID]

which results in

[GAME_PLAYGRID <caret>]

Or is it another case you are talking about?


BTW if completion lags and it's slowing you down you may try to disable automatic completion popup in "Preferences | Code Completion". This way it will only appear if you invoke it manually.

0
Comment actions Permalink

1. yes, you are missing that i already typed the only possible completion, ie you have nothing to offer other than what i already typed. Remember, typing is slow (typically .25+ seconds between key-down and feedback, so i very often type blind (and fast) and get it right. What is frustrating (in that case and others) is that even if i got it right, i get this which takes even longer to escape out of.
2. sad ... i sometimes feel that YouTrack is a complete waste of my time, so i am staying away from it.
3. I turned off some things (per your helpful suggestion. so, when i type [GA, force list , i get this. (i type the opening bracket very often to avoid silly 'closing bracket' completion failures in nested calls)
Screen Shot 2014-10-07 at 9.22.08 AM.png
if i now accept the top suggestion i get this

Screen Shot 2014-10-07 at 9.29.42 AM.png
darn, you cant see it on the SS, but the carret is to the right of the closing bracket.

ps. Thank you for the time, i'll try to get used to working without completions, but you have to admit : THAT is one of the top 3 features that make us prefer AppCode to the competition. And all three of the top 3 account for 95% of the value of AppCode. The other 1456328 features (and counting) only account for 5% of the value imho.

I feel performance on an MBP should be a top consideration for JetBrains. I have an MBP for the same reason as most people have a cell-phone. It is the only option i have for working on multiple projects at multiple sites.

0
Comment actions Permalink

1) Yes, my fault. Now I understand the problem - https://youtrack.jetbrains.com/issue/OC-10833

2) I understand that you want the editor fitted exactly for your taste and totally sympathize with you. But if we accept each and every customization there would be 100+ options in completion alone. We should make some things non-customizable to keep consistency. If howether your feature is absolutely cool (as in "very useful") or have many supporters - that's a different story. That's why we have to have them on YT, and that's why there are so many dead features there.

3) So you already have opening bracket before typing. I'm able to reproduce this with method-calling macros - https://youtrack.jetbrains.com/issue/OC-10834 . Thanks for reporting this.

We are rolling out some editor performance updates in the next EAP. Hope this will improve things for you.

0
Comment actions Permalink

Thanks Dmitry,

in the spirit of no 1, (now that i suppressed auto-completes) an useful feature would be to auto-complete the single suggestion left when there is only one (when pressing ctrl-<space> to get the list of candidates. On projects that I have fully committed to my private indexing engine, i get 99% of the time to the minimal number of characters to type to bring down the list to 1 :) , as shown below. Instead of poping up the 'single entry list', the behaviour to complete would be a great time saver for me (and others too). This would make AppCode almost workable on my projects and MBP.

Screen Shot 2014-10-07 at 1.09.28 PM.png

-- Yves

0
Comment actions Permalink

This one is already there. Please make sure it's turned on.

auto_insert.png

0

Please sign in to leave a comment.