Visual Studio代码:选择每次出现的find [英] Visual Studio Code: Select each occurrence of find
问题描述
我正在寻找要尝试找到的选择每次出现的事物".例如,文件中有一堆包含"abc"的文本,我键入 ctrl + f 并键入abc
.我既可以找到第一个,也可以找到下一个,但是我想在文件中对每个光标进行多光标"操作.
我已经找到了使我能够突出显示文本和 ctrl + d 的功能,以获取与所选内容匹配的下一个功能,但是如果有一百个这样的功能-那么变得很累.
I'm looking for a "select each occurrence of" something I'm trying to find. For example a file has a bunch of text that includes "abc", I type ctrl+f and type abc
. I can either find the first one or the next one, but I would like to "multi-cursor" each one in the file.
I've already found the feature that lets me highlight text and ctrl+d to get the next that matches the selection, but if there's a hundred of these things - well that gets quite tiresome.
推荐答案
Ctrl + Shift + L 选择所有当前出现的选择
Ctrl+Shift+L Select all occurrences of current selection
editor.action.selectHighlights
Ctrl + F2 选择当前单词的所有出现
Ctrl+F2 Select all occurrences of current word
editor.action.changeAll
请在此处参阅更多信息.
这篇关于Visual Studio代码:选择每次出现的find的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!