How to avoid this annoying autocomplete in visual studio code

Viewed 3599

When I type import tensorflow as tf it automatically complete tf to try/finally block when I press the enter key, which is annoying and not intelligent at all, how to avoid this?

enter image description here enter image description here

3 Answers

Search your workspace settings for Editor: Accept Suggestion On Enter and set it to Off. Now when you type import numpy as np you will see numpy as the suggested completion. If you hit tab, VSC will use the suggestion, but if you hit Enter it will not.

I had this issue and solved it by disabling "accept suggestions on enter" in settings.

This way, the suggestion will still come up but you need to use the tab key to accept the suggestion.

"editor.acceptSuggestionOnEnter": false

Related