'How to search through all installed python packages for a class in vscode?

In vscode, is it possible to search for given symbol (class, function, etc) through current project files and all installed python packages? For example in pycharm I can press Shift 3 times and search dialog appears, I write class name like "PTransform", mark checkbox "include non-project items" and I get all the modules/files where given symbol is defined. Is it possible to do in vscode?

I know there is "search" pane in side bar, but it only searches for strings and only through current project files, not all installed python packages.



Solution 1:[1]

In VSCode, its search function is to search all files in the current project by default.

Therefore, since you want to search for the content including the installed Python module, it is recommended that you use a virtual environment. The Python module will be stored in this environment and exist in the current project.

For example, search for the method "configuration" in the "setup.py" file in the Python module package "numpy":

enter image description here

For searching all installed'Python modules' that are not stored in the current open, I submitted this question on Github, and let us look forward to the realization of this function.

Link: Is it possible to search for all installed Python modules, including those that are not stored in the project?

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1