在Android Studio中,每个匹配的文本会自动出现多个光标吗? [英] Multiple cursors in Android Studio automatically at every text that matches?
问题描述
我在ALT + SHIFT
上使用了多个游标.有时我需要20个光标,而我希望它们位于文本同一部分的开头.每次都要这样做很乏味.有捷径吗?像想象中的那样,文件中有20个文本"foo"的实例,那么我只想选择一个,理想情况下它将为所有其他实例在同一位置自动插入一个光标.
I have been using multiple cursors with ALT + SHIFT
. Sometimes I need like 20 cursors and I want them at the start of the same portion of text. This is tedious to do every time. Is there a shortcut for this? Like imagine there are 20 instance of the text "foo" in the file then I would like to just select one and ideally it should automatically insert a cursor for all the other instances in the same position.
推荐答案
查找选择下一次出现选项.
在Mac上,先选择一个单词,然后选择^ G
,在Ubuntu上,快捷键为ALT + J
.
Look for the Select Next Occurrence option.
On Mac it's used by selecting a word and then ^ G
, on Ubuntu the shortcut is ALT + J
.
通过重复按键组合来遍历您想要更改的每个项目.
Traverse through every item you wish to change by repeating the key combination.
这篇关于在Android Studio中,每个匹配的文本会自动出现多个光标吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!