Beta Intellisense Auto Complete Cancels With Spacebar Press

Discussion in 'Android Questions' started by RandomCoder, May 29, 2015.

  1. RandomCoder

    RandomCoder Well-Known Member Licensed User

    The intellisense is working fine for me but I've noticed that if you press space once the variable/object is highlighted it actually cancels the insertion, instead I have to press enter or a comma or equals sign etc.

    i.e. I have a variable called "intMyVariable" if I start to type "intM" and press spacebar I will end up with just "intM" even though the variable was highlighted in intellisense menu. If I type "intM" and press "=" or a similar key then it will insert "intMyVariable=" as you would expect.
    It just seems like the spacebar is acting like pressing escape when it should actually insert the highlighted variable.

    I don't think that this has been reported previously.
  2. HotShoe

    HotShoe Well-Known Member Licensed User

    This is probably default behavior so that you can type a new variation of a variable name without the IDE overwriting your new variable with an existing one.

    --- Jem
    Peter Simpson likes this.
  3. qsrtech

    qsrtech Active Member Licensed User

    I see but it's intermittent and seems to depend on the type of object. Definitely not good IMHO.
  4. Erel

    Erel Administrator Staff Member Licensed User

    This is by design. There are two modes to the auto completion feature: explicit and implicit.

    If you explicitly started the autocomplete with Ctrl + Space then it will complete with space. If the auto complete was started automatically (implicit mode) then it will not complete with space. This is important to allow you to write your code freely without "fighting" with the auto completion feature.

    Note that in Visual Studio it does auto completes with space in both cases and indeed you find yourself pressing escape all the time or go back and delete the automatic text.
  5. RandomCoder

    RandomCoder Well-Known Member Licensed User

    Thank you for the clarification, I'll try and remember to use the Ctrl + Space when wanting already defined variables.
    Peter Simpson likes this.
  6. Erel

    Erel Administrator Staff Member Licensed User

    Or use enter to choose the item.
    Peter Simpson likes this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice