# Autocomplete on TAB; not on SPACE

**URL:** https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466
**Category:** Fire
**Created:** [October 1, 2021, 9:37am UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466 "2021-10-01T09:37:18Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![marcvanbreemen](https://talk.remobjects.com/user_avatar/talk.remobjects.com/marcvanbreemen/32/16420_2.png) [@marcvanbreemen](https://talk.remobjects.com/u/marcvanbreemen)
#### Post date: [October 1, 2021, 9:37am UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/1 "2021-10-01T09:37:18Z")

</div>

When I type “If” to start a If-Then-Else construct, the autocomplete pops up, which is ok, because I like to have it show up automatically.

However when I press SPACE it chooses the currently highlighted item in the autocomplete list, which is not what I want. The only thing (afaik) to avoid that is to first pressing ESC and then SPACE, but that’s a bit cumbersome.

Am I missing something here, or is this just the way it works? If that’s the case I would like to see an option to only have autocomplete select an item on TAB and/or ENTER.

 ![image](https://talk.remobjects.com/uploads/default/original/3X/a/5/a57101e7eabc22a605084e6f37c29f0f1ecf78c3.jpeg)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 1, 2021, 12:13pm UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/2 "2021-10-01T12:13:09Z")

</div>

> [@marcvanbreemen](#):
>
> However when I press SPACE it chooses the currently highlighted item in the autocomplete list, which is not what I want. The only thing (afaik) to avoid that is to first pressing ESC and then SPACE, but that’s a bit cumbersome.

That’s a big in CC, that “If” isn’t in the list there. Can I see a concrete test case?

As a general; rule of thumb: CC should always contain everything valid in the current context, and off the current context allows “unknown” identifiers (eg “Dim |”), the CC popup should be “soft”-selected and not insert on space.

Any case where this does not happen is a bug in the CC data, not the fault of “space” accepting that CC.

(That said, you can turn auto-CC off in Preferences). But the goal for CC is to always be correct and this to never happen.

---

<div class="post-metadata">

### Author: ![marcvanbreemen](https://talk.remobjects.com/user_avatar/talk.remobjects.com/marcvanbreemen/32/16420_2.png) [@marcvanbreemen](https://talk.remobjects.com/u/marcvanbreemen)
#### Post date: [October 1, 2021, 1:16pm UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/3 "2021-10-01T13:16:09Z")

</div>

> [@mh](#):
>
> Can I see a concrete test case?

I did some further testing.

It does happen in a For-Next block:

```auto
Namespace Test

  Public Shared Class Testing
    Public Sub Test123()
      If 1=1 Then
        For x As Integer = 1 To 100
          // Type If here
        Next x
      End If
    End Sub
  End Class

End Namespace

```

Also it doesn’t suggest Public/Property direct after Public Class:

```auto
  Public Class Testing
    // Start typing Property or Public doesn't suggest it.
  End Class

```

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 1, 2021, 2:10pm UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/4 "2021-10-01T14:10:38Z")

</div>

Logged as [bugs://E25381](https://www.remobjects.com/portal/bugs/?id=E25381).

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 1, 2021, 2:11pm UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/5 "2021-10-01T14:11:23Z")

</div>

> [@marcvanbreemen](#):
>
> I did some further testing.

Thanx!

---

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [October 11, 2021, 10:53am UTC](https://talk.remobjects.com/t/autocomplete-on-tab-not-on-space/25466/6 "2021-10-11T10:53:49Z")

</div>

[bugs://E25381](https://www.remobjects.com/portal/bugs/?id=E25381) was closed as fixed.
