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?
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.
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.
By default the shortcut to trigger intellisense on VS Code (for mac) is ⌃ – Control + Space .
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.
Those are snippet suggestions. Try setting:
"editor.snippetSuggestions": "none"
to disable them.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With