Reputation: 175
Like in Jupyter notebook shift+tab
is the shortcut to show documentation and Tab
key for suggestions (.ipynb). Similarly in VS code what is the shortcut if I am using it for Python?
In VS code, while using .JS suggestions are coming as I type but for .py its not showing any suggestions.
Upvotes: 6
Views: 3235
Reputation: 31
The pylance extension uses Pyright, a static type checking tool. Moreover it empowers "IntelliSense" experience of writing Pythong code in VS Code.
You should then be able to use the default binding ctrl+space for code completion. To see docstrings, just hover on the object you want information on.
Upvotes: 1
Reputation: 17
Looks like you need to install an extension for python for autocomplete to work. Try this link to install the required extension and get access to IntelliSense.
https://marketplace.visualstudio.com/items?itemName=ms-python.python
Then ctrl + space should bring up intellisense.
Upvotes: 1