Visual Studio Code Replace multiple files at once

≯℡__Kan透↙ 提交于 2019-12-19 19:19:09

问题


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?


回答1:


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




回答2:


  • 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).



回答3:


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++




回答4:


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



来源:https://stackoverflow.com/questions/32897659/visual-studio-code-replace-multiple-files-at-once

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