简体   繁体   English

崇高-仅将选择范围扩展到匹配项

[英]Sublime - expand selection only to matches

Sublime-Text-3 Expands the selection in a weird manner.I have the following Code-Snippet: Sublime-Text-3以一种奇怪的方式扩展了选择范围。我有以下代码片段:

    appName = "Weired Application"
    for i in appName:
        print i

When i select i and want to expand selection to the next occurrence, it will select the i of the word in . 当我选择 ,并希望扩大选择下一个发生,它会选择这个词的 How can i expand selections only to matches? 如何仅将匹配项扩展到匹配项? When i mark "i" it will show the correct selection, which is the i next to print but its expanding to the next occurring character. 当我标记“ i”时,它将显示正确的选择,即要打印的i ,但它会扩展到下一个出现的字符。

I already tried almost every combination in search/replace (as those options are related to CTRL + D as well) 我已经尝试了搜索/替换中的几乎所有组合(因为这些选项也与CTRL + D有关)

Did you tried to just place the cursor next to i then CTRL + D? 您是否尝试过将光标放在i旁边,然后按CTRL + D? in my case(Windows 8.1), selecting a block on i then CTRL + D and placing cursor before/next to i then CTRL + D gave me different outcome, and placing cursor(not making a block) gave me the result that you wanted. 在我的情况下(Windows 8.1),在i上选择一个块,然后按CTRL + D,然后将光标放在i之前/旁边,然后CTRL + D给我不同的结果,而将光标(不作一个块)给我想要的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM