Nicola Dragoni
Nicola Dragoni

Reputation: 181

Documentation for Python Functions in Visual Studio Code

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?

What Intellisense suggests me

EDIT: I have installed the Python Extensions for VS Code. Also, if relevant, I am using Python 3.9.0

Upvotes: 8

Views: 26703

Answers (2)

Nicola Dragoni
Nicola Dragoni

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

rokpoto.com
rokpoto.com

Reputation: 10784

You need to install Python extension.

Then, once you hover with mouse over a function invocation, its documentation will appear:

enter image description here

Upvotes: 3

Related Questions