Some people do not want to autocomplete when they enter.
They will choose tab
key instead since you have to press esc
when you want to use enter
key and at the same the unwanted suggestion shows up.
But some people find enter
key is more handy instead.
Anyway, below shows 2 ways to turn this off.
- Go to VSCode setting and search for:
editor.acceptSuggestionOnEnter
- Choose off from the dropdown menu below:
Editor: Accept Suggestion On Enter
Controls whether suggestions should be accepted on Enter, in addition to Tab. Helps to avoid ambiguity between inserting new lines or accepting suggestions.
[off]
Place this in your 'settings.json' file :
"editor.acceptSuggestionOnEnter": "off",
settings.json
can be found and opened by:
- Opening the setting of VSCode.
- On top right corner icons, the first icon is the settings.json file.