如何仅在 vscode 中当前打开的文件中搜索? [英] How to search only in currently open files in vscode?

查看:329
本文介绍了如何仅在 vscode 中当前打开的文件中搜索?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常处理包含许多包含搜索查询的文件的大型项目.所以我会打开我想要修改的文件并在所有当前打开的文件中进行查找/替换.这可以在 vs 代码中完成吗?

I usually work on larger projects with many files that would contain the search query. So I would open the files I want to modify and do a find/replace across all currently opened files. Can this be done in vs code?

我正在寻找的功能是在 Notepad++ 中实现的,但我不想为此任务切换编辑器.

The feature I'm looking for is implemented in Notepad++, but I'd prefer not to have to switch editors for this task.

推荐答案

对我来说,它只是通过在文件中输入 ./ 来排除字段.

For me somehow it works just by typing ./ in the files to exclude field.

这篇关于如何仅在 vscode 中当前打开的文件中搜索?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆