How to show what the function does in documentation popup in vs code?

Viewed 725

I saw on youtube video that vs code shows what the function does when you hover over. For example,

enter image description here

but when I do this it shows the parameter documentation only. How do I achieve this in my vs code?

1 Answers

This comment is from the docs of the lib you are working with. To get it shown you must have the Python official extension installed in your VSCode and the comment in the implementation of the method.

Here is an example:

implementation of the method

How it's shown:

using

You must install this extension:

Name: Python Id: ms-python.python Description: Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, and more. Version: 2021.2.633441544 Publisher: Microsoft VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python

Related