Charles L.
Charles L.

Reputation: 1970

Visual Studio Code Replace multiple files at once

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

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?

Upvotes: 25

Views: 42656

Answers (4)

  • Open the folder containing the files wished to be edited via Visual Studio Code. If not exist, create a folder and fill up it with the files.
  • At the top-menu bar Edit - Replace in Files or (On Windows Ctrl + + H, On Mac, + + H).

Upvotes: 27

Jedateach
Jedateach

Reputation: 395

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

Upvotes: 13

Sandeep Somavarapu
Sandeep Somavarapu

Reputation: 1

Replace in multiple files is supported in latest version of vscode 1.3.

Upvotes: -3

MatPag
MatPag

Reputation: 44861

At the current time this is not supported (read in the link at Common Questions) https://code.visualstudio.com/Docs/editor/codebasics#_common-questions

I suggest you to try with Notepad++

Upvotes: 0

Related Questions