在Intellij Idea编辑器的每个查找结果中获得多个光标(尖号)?

Jon*_*Jon 3 intellij-idea android-studio

我想同时选择所有包含单词“ key”的字符串资源键。我很难弄清楚这一点,所以我想将其发布给其他人。多光标文档没有解决此问题。

我要从中选择文件的摘录。

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <!-- User Preferences -->    
    <string name="preference_key_pedigree_enable_offline_mode">Pref.OfflineMode</string>
    <string name="preference_title_pedigree_enable_offline_mode">Offline Mode</string>
    <string name="preference_summary_on_pedigree_enable_offline_mode">Scans work without an internet connection, don\'t require a VIN and can\'t be saved.</string>
    <string name="preference_summary_off_pedigree_enable_offline_mode">Scan results will be sent to the server.</string>
    <string name="preference_default_pedigree_enable_offline_mode">false</string>

    <string name="preference_key_pedigree_hide_cleared_dtcs">pref_pedigree_hide_cleared_dtcs</string>
    <string name="preference_title_pedigree_hide_cleared_dtcs">Hide Cleared DTCs</string>
    <string name="preference_summary_on_pedigree_hide_cleared_dtcs">DTC\'s are hidden after they\'ve been cleared</string>
    <string name="preference_summary_off_pedigree_hide_cleared_dtcs">DTC\'s are still shown after they\'ve been cleared</string>
    <string name="preference_default_pedigree_hide_cleared_dtcs">true</string>

    <string name="preference_key_analytics_global_opt_out">pref_analytics_global_opt_out</string>
    <string name="preference_title_analytics_global_opt_out">Analytics Opt-Out</string>
    <string name="preference_summary_on_analytics_global_opt_out">Analytics switched off.</string>
    <string name="preference_summary_off_analytics_global_opt_out">Crash reports and usage statistics are being used to improve this app.</string>
    <string name="preference_default_analytics_global_opt_out">false</string>
</resources>
Run Code Online (Sandbox Code Playgroud)

Jon*_*Jon 5

IntelliJ IDEA的调用这个多选

选择要使用光标搜索的术语。在我的示例中,单词
在此处输入图片说明
接下来,选择所有出现的事件

选择的屏幕截图

现在,您可以将选择(ctrl+ W)扩展到整个键,然后复制并粘贴到其他位置。