我将 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/