Reputation: 181
I am studying python in Visual Studio code, and watching some tutorials I noticed a difference between the tutorial's IDE and mine.
When writing code, the tutorial's IDE will have suggestions and explanations on how to use functions. For example, when typing mystring.replace() a popup will appear with information about what the replace function does and what kind of arguments it expects.
In my case, however, I don't see anything like that (see attached screenshot). Is there something I am missing in the config of VS Code?
EDIT: I have installed the Python Extensions for VS Code. Also, if relevant, I am using Python 3.9.0
Upvotes: 8
Views: 26703
Reputation: 181
I found an answer to my problem.
In the settings page for Python, I changed the language server to Pylance and now I have more complete intellisense support for methods.
Upvotes: 10
Reputation: 10784
You need to install Python extension.
Then, once you hover with mouse over a function invocation, its documentation will appear:
Upvotes: 3