问题
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