VSCode: How do I search and replace text in only opened files?

时间秒杀一切 提交于 2021-02-10 12:37:03

问题


I need to replace some text in only the files that are currently opened.

Such as my project contains a.html, b.html and c.html; but I opened only a.html and b.html, so the replace won't affect c.html

Is there a way to find and replace the occurrences at once instead of going through those files one by one?


回答1:


Use this it will open the panel on vscode and replace all occurrences in project files.

And you can specify files to include and files to exclude

Ctrl + Shift + H



来源:https://stackoverflow.com/questions/56269023/vscode-how-do-i-search-and-replace-text-in-only-opened-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!