Reputation: 241
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?
Upvotes: 17
Views: 5914
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
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
Reputation: 65593
Those are snippet suggestions. Try setting:
"editor.snippetSuggestions": "none"
to disable them.
Upvotes: 7