简体   繁体   中英

How do I fix my auto-completion in VSCODE?

In the example below you can see that my auto-completion is not "full", but only partial.

I have a couple of extensions that might affect this, which is why I posted them below the gif. I have already tried to change it in VSCode settings in vain.

[Autocompletion failed][1]

VSCode Extensions:

  1. Python
  2. Kite
  3. Visual Studio IntelliCode
  4. Python Extended [1]: https://i.stack.imgur.com/9eYm2.gif

My auto-complete also didn't work today, but it was because I had kite enabled without kite engine installed thus even Kite didn't work.

You might have some other needed software missing like I did. Keep a look out for error messages about these autocomplete extensions to see if you might be missing some dependencies.

Otherwise you might have to try disabling or uninstalling some of these extensions and for example only keeping IntelliCode.

Actually, if you type main , there is a

Code snippet for a `if __name__ == "__main__": ...` block 

which gets the whole code completion, so the function auto-completion is recognized by some keywords:

在此处输入图片说明

You can install Pylance in extension marketplace. Pylance provides some awesome features for Python 3, including Code completion, Parameter suggestions and others. More information you can refer to Pylance .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM