Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 870
Lucky Avatar asked Aug 01 '17 16:08

Lucky


People also ask

How do I disable IntelliSense in Visual Studio?

You can enable or disable particular IntelliSense features in the Options dialog box, under Text Editor > C/C++ > Advanced. To configure IntelliSense for single files that aren't part of a project, look for the IntelliSense and browsing for non-project files section.

How do I change autocomplete in Visual Studio?

Go to Tools | Options | Text Editor | C/C++. This dialog displays a window that allows you to toggle Automatic brace completion. Automatic brace completion is the feature where, when you type { , a corresponding } is automatically typed for you.

How do I trigger autocomplete in VS Code?

By default the shortcut to trigger intellisense on VS Code (for mac) is ⌃ – Control + Space .

Why Autocomplete is not working in VS Code?

Why is VS Code suggestions not working? If you're coding in JavaScript or TypeScript and finds that VSCode IntelliSense does work but does not behave properly, it's likely that you've selected the wrong language mode. TypeScript and JavaScript share the same language service, so you need to select the right language.


2 Answers

Those are snippet suggestions. Try setting:

"editor.snippetSuggestions": "none"

to disable them.

like image 157
Matt Bierner Avatar answered Sep 26 '22 00:09

Matt Bierner


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.

like image 30
Todd Johnson Avatar answered Sep 22 '22 00:09

Todd Johnson