I'm running into a few issue with code completion, and I can't quite figure out how to fix it. I looked in several other threads, and the issues those threads cover seem to be different than mine. Sorry If I'm repeating anything that's already been covered. Here goes:
1) I noticed that when I try to utilize the code completion feature, code is often completed incorrectly. For example, if I type:
and press ctrl+space to invoke the completion window, I see StageScaleMode.NO_SCALE, which I select, and then I get:
StageScaleMode.NO_NO_SCALE instead of StageScaleMode.NO_SCALE. Is there a more correct way to invoke the code completion option?
2) intellisense doesn't seem to kick in for Vector objects. For example:
private function someTouchHandler(e:TouchEvent):void
var touchGlobalX:int = e.touches. <-- no intellisense pops up, and nothing happens if I press ctrl+space
Even though e.touches is defined as a Vector of Touch objects, I get nothing.
3) Is there some trick to getting imports to be automatically included? I often type something like
Where CustomClass is a class defined in my project in some other package. Sometimes I get the option to choose "CustomClass" and when I do get the option, I choose it and sometimes the import of CustomClass does not appear. Is there a setting that controls this, or is there some bug happening?
4) Is there some sort of delay baked into when ctrl+space invokes the auto-complete options? it seems like it takes well over half a second for the dialog to appear, but I haven't timed it precisely. It would be great to be able to make that faster if possible.