Visual Studio代码一次替换多个文件 [英] Visual Studio Code Replace multiple files at once

查看:1098
本文介绍了Visual Studio代码一次替换多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有办法在多个文件中同时重新生成多行?

I was wondering if there was any way to repalce multiple line in multiple files at the same time?

我知道在编辑 - >在文件中查找

I know under edit->Find in Files

这将显示所有文件中的所有欲望行,但是你必须逐个raeplce,任何人都喜欢REPLACE ALL?

this will show all the desires lines in all the files, however you have to raeplce them one by one, anyone way to just like REPLACE ALL?

推荐答案

您还可以跨文件搜索和替换。展开搜索窗口小部件以显示替换文本框。

You can also Search and Replace across files. Expand the Search widget to display the Replace text box.

在替换文本框中键入文本时,您将看到待处理更改的差异显示。您可以替换替换文本框中的所有文件,替换所有文件或替换单个更改。

When you type text into the Replace text box, you will see a diff display of the pending changes. You can replace across all files from the Replace text box, replace all in one file or replace a single change.

https://code.visualstudio.com/Docs/editor/codebasics#_search-across-files

这篇关于Visual Studio代码一次替换多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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