Lucky
Lucky

Reputation: 241

How to avoid this annoying autocomplete in visual studio code

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

Upvotes: 17

Views: 5914

Answers (3)

Ciarán
Ciarán

Reputation: 43

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

Upvotes: 4

Todd Johnson
Todd Johnson

Reputation: 201

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.

Upvotes: 5

Matt Bierner
Matt Bierner

Reputation: 65593

Those are snippet suggestions. Try setting:

"editor.snippetSuggestions": "none"

to disable them.

Upvotes: 7

Related Questions