python - 在 VS Code Python 中使用函数/方法名称进行搜索

标签 python visual-studio-code pycharm

我将 PyCharm 用于我的 Python 程序。我最近一直在尝试 VS Code,并且一直喜欢它。我想念的一个功能是 pycharm 中的“Search Everywhere”功能,它允许您在整个项目中搜索函数/方法名称。你甚至可以搜索像 project.module.module.function_name 这样的相关函数名称,它就会显示出来。

我可以在 VS Code 中实现同样的目标吗?

最佳答案

我认为这 official guide 应该适用于您的情况。

VS Code allows you to quickly search over all files in the currently-opened folder. Press Ctrl+Shift+F and enter in your search term. Search results are grouped into files containing the search term, with an indication of the hits in each file and its location. Expand a file to see a preview of all of the hits within that file. Then single-click on one of the hits to view it in the editor.

关于python - 在 VS Code Python 中使用函数/方法名称进行搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52254025/

相关文章:

python - Ubuntu supervisord PYTHONPATH 未设置

Python For循环获取索引

python - 安排笨重进口的正确方法是什么

python - 如何使用 rcParams 中的 linestyle=None 在 matplotlib 中制作误差线图?

f# - 如何使用 vscode 在 F# 项目中强制文件排序?

html - 我的 VS Code 中的 HTML 快捷方式不起作用

python - 如何使用正确的自动补全功能编辑 Python 脚本?

macos - 如何将 VSCode 集成终端上的 cmd+backspace 功能添加到 Mac 上

python-3.x - 在PyCharm中配置解释器: “please use a different SDK name”

python 2.7.9/pycharm 4/windows7 : 'file' object has no attribute 'readall'