Visual Studio Code 在文件中查找选定的文本 [英] Visual Studio Code find selected text in files
问题描述
在 Visual Studio 代码中:
In Visual Studio Code:
我想:在编辑器中选择文本,按热键在文件中查找",按回车:
I would like to: select text in editor, press hotkey "for find in files", press return:
结果:找到文件中所选文本的所有实例
result: find all instances of selected text in files
(所以我需要将当前选定的文本复制粘贴到搜索输入字段中)
(So I would need the currently selected text copy pasted into the search input field)
推荐答案
搜索 ctrl+shift+f 的默认键绑定有效 - 它使用命令:"-workbench.action.findInFilesWithSelectedText"
The default keybinding for search ctrl+shift+f works - it uses the command: "-workbench.action.findInFilesWithSelectedText"
我有一个自定义键绑定并映射到命令":-workbench.action.findInFiles"
I had a custom key binding and mapped to "command": "-workbench.action.findInFiles"
这篇关于Visual Studio Code 在文件中查找选定的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!