# Having to press Enter twice with autocompletion

**URL:** https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787
**Category:** VS Code
**Created:** [July 27, 2020, 7:50pm UTC](https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787 "2020-07-27T19:50:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [July 27, 2020, 7:50pm UTC](https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787/1 "2020-07-27T19:50:04Z")

</div>

Is there a way not to have to press enter twice with autocompletion when you just type the whole keyword? For example, here I have to press Enter twice after typing `end`:

![enter-twice](https://global.discourse-cdn.com/julialang/original/3X/d/c/dc0da17a76c6ed123e07034b121f9d95f0190d5e.png)

In practical terms: deactivate autocomplete when the identifier being entered matches the only autocomplete suggestion.

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [July 27, 2020, 8:07pm UTC](https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787/2 "2020-07-27T20:07:52Z")

</div>

I’d suggest setting `Accept Suggestion On Enter` to `off`:  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/b/c/bc1a4423f13ce8a3059731bdb29c1235f4ae87d9.png)

---

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [July 27, 2020, 8:21pm UTC](https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787/3 "2020-07-27T20:21:32Z")

</div>

This is a good practical solution. Can the behavior itself be addressed or is it beyond the scope of Julia extension for VSCode?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [July 27, 2020, 8:22pm UTC](https://discourse.julialang.org/t/having-to-press-enter-twice-with-autocompletion/43787/4 "2020-07-27T20:22:55Z")

</div>

I don’t think the Julia extension has any control over this, no.
