欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

sublime undo find_under_expand 选择下一个的反操作 撤销选择下一个 有大用 有大大用

  • 1

 
Votes 投票

Is there a way to remove selection when you use multy cursors. I mean when I use ctrl+d it expandes selection and ctrl+k, ctrl+d to skip selection works, but ctrl+u for removing selection is not working on windows. Is there another shortcut or some snippents to make it work?

当您使用 multy 游标时,是否有一种方法可以删除选定内容。 我的意思是,当我使用 ctrl + d 它扩展选择和 ctrl + k,ctrl + d 跳过选择工作,但 ctrl + u 移除选择不工作的窗口。 有没有其他的捷径或者一些草率的建议可以让它起作用?

    name 
    •  

    • 0

    •  

    It sounds like there is a plugin interfering with the CtrlU undo option. To find it, open the console with Ctrl` and enter the command

    听起来像是有一个插件干扰了 ctrl / lu 撤销选项。 要找到它,用 Ctrl 键打开控制台并输入命令

    sublime.log_commands(True)
    

    This shows what's going on behind the scenes when you press key combinations or use mouse buttons. Test it by making some multiple selections with CtrlD, and you should see

    这显示了当您按下组合键或使用鼠标按钮时,幕后发生了什么。 通过使用 ctrl 键进行一些多重选择来测试它,您应该会看到

    command: find_under_expand
    

    in the console. Now, try to undo one of your selections by hitting CtrlU and see what comes up. If you see

    在控制台。 现在,试着通过点击 ctrl + lu 来撤销你的一个选项,然后看看会出现什么。 如果你看到

    command: soft_undo   我看到是 run_emmet_action : update_image_size    
    所以我增加了一个快捷键 alt+shift+j 的 command 为   soft_undo   就可以了

    { "keys": ["alt+shift+j"], "command": "soft_undo" },

    then it's not another plugin issue, as that's what you'd expect to see. However, if (as I suspect) another plugin is interfering, you'll see something else there. If you do, hopefully you'll be able to trace it to the plugin it belongs to and disable it.

    那么这就不是插件的问题了,这就是你所期望看到的。 然而,如果(正如我怀疑的那样)另一个插件在干扰,你会看到其他的东西。 如果你这样做了,希望你能够追踪到它所属的插件并禁用它。

    When you're done, enter

    完成后,输入

    sublime.log_commands(False)
    

    in the console to turn logging off, then close the console by hitting Esc or Ctrl`.

    在控制台中关闭登录,然后按 Esc 或 Ctrl‘关闭控制台。



    来自   https://www.answiz.com/questions/65131/sublime-text-remove-multy-cursor-selection-in-windows

    普通分类: