如何在 Visual Studio Code 中查找和替换所有匹配项(在所有文件中)? [英] How do I find and replace all occurrences (in all files) in Visual Studio Code?
问题描述
我不知道如何使用 Visual Studio Code 1.0 版查找和替换不同文件中出现的所有单词.
I can't figure out how to find and replace all occurrences of a word in different files using Visual Studio Code version 1.0.
我觉得这应该是可能的,因为 Ctrl + Shift + F 允许我简单地搜索一个文件夹,但我不知道如何从这里开始.
I get the impression this should be possible since doing Ctrl + Shift + F allows me to simply search a folder, but i am clueless to how to proceed from here.
我查看了各种组合键https://code.visualstudio.com/Docs/customization/keybindings
但我只找到了如何替换打开文件中的所有匹配项 (Ctrl + h)
But I only found how to replace all occurrences in the open file (Ctrl + h)
感谢所有帮助,这让我发疯.
All help gratefully appreciated, this is driving me crazy.
推荐答案
更新 - 从 1.3 版(2016 年 6 月)开始,可以在 Visual Studio Code 中进行搜索和替换.使用 ctrl + shift + H 可以搜索和替换所有文件中的文本.
Update - as of version 1.3 (june 2016) it is possible to search and replace in Visual Studio Code. Using ctrl + shift + H , you can search and replace text in all files.
目前看来这是不可能的(版本 1.1.1(2016 年 4 月))
It seems this is not possible at the moment (Version 1.1.1 (April 2016))
"问:是否可以全局搜索替换?
"Q: Is it possible to globally search and replace?
A:此功能尚未实现,但您可以期待它在未来推出!"
A: This feature is not yet implemented, but you can expect it to come in the future!"
https://code.visualstudio.com/Docs/editor/codebasics
这似乎也是社区要求的:https://github.com/Microsoft/vscode/issues/1690
This seems also requested by community: https://github.com/Microsoft/vscode/issues/1690
这篇关于如何在 Visual Studio Code 中查找和替换所有匹配项(在所有文件中)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!