V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yellowmarlboro
V2EX  ›  Visual Studio Code

vscode 如何对搜索结果同时选中并编辑?

  •  
  •   yellowmarlboro · 2018-07-20 11:15:24 +08:00 · 4678 次点击
    这是一个创建于 2078 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如下 搜索 apple(所有结果) 同时选中 1,3 行并编辑。

    1 eat apple
    2 eat banana
    3 eat apple
    4 eat pear
    
    4 条回复    2018-07-20 11:33:37 +08:00
    lcorange
        1
    lcorange  
       2018-07-20 11:18:44 +08:00
    试试正则搜索(搜索的第三个按钮 .*) .*apple 然后全局替换,看看能满足需求不
    yellowmarlboro
        3
    yellowmarlboro  
    OP
       2018-07-20 11:29:33 +08:00
    @lcorange
    嗯 我知道这个 我的意思是选中有 apple 的行 比如我想编辑带有 'apple' 的行的 'eat' 单词或者其他部分 不是直接修改 apple.
    yellowmarlboro
        4
    yellowmarlboro  
    OP
       2018-07-20 11:33:37 +08:00
    @hahastudio
    thx
    觉得 Crtl + D 太累.. 找到了 Crtl + Shift + L
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1423 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 17:26 · PVG 01:26 · LAX 10:26 · JFK 13:26
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.