- Open VS Code.
- Click on File.
- Then find Preferences -> settings.
- Click on the Text Editor in the left side menu.
- Then Click on Suggestions.
- Locate the Accept Suggestions 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.) Setting and change it.