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

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

问题描述

我想知道是否有任何方法可以同时替换多个文件中的多行?

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

这将显示所有文件中的所有需求行,但是您必须一一进行,有什么方法可以像 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 Code 一次替换多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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