sublimetext3 - Sublime 3 : Ctrl-c triggers even if no text is selected,在剪贴板中放置文本

标签 sublimetext3 sublimetext

我正在使用Sublime 3083

假设我在文件中剪切了一些文本(Ctrl-x),然后尝试将其粘贴到同一文件或另一个文件中的其他位置。

  • 我将光标放在要粘贴文本的行上。
  • 如果我按Ctrl-v,则粘贴的文本没有问题。
  • 但是,如果我不小心碰到了Ctrl-c,则无法再粘贴剪切的文本。它已从剪贴板中删除,我被迫将Ctrl-z返回到剪切文本之前的位置。

  • 即使在命中Ctrl-c时未选择任何文本,也会发生这种情况。

    我进行了测试,这种行为似乎是Sublime所独有的。这是功能吗?如果是这样,可以禁用它吗?

    最佳答案

    Preferences > Settings - Default中有一个设置可以更改行为:

    // If true, the copy and cut commands will operate on the current line
    // when the selection is empty, rather than doing nothing.
    
    "copy_with_empty_selection": false,
    

    将其更改为false应该可以使其不会复制空选择。

    关于sublimetext3 - Sublime 3 : Ctrl-c triggers even if no text is selected,在剪贴板中放置文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31061764/

    相关文章:

    sublimetext - 具有多个工作区的单个项目?

    regex - Sublime Text 3语法定义: how to capture a multiline C-style block comment?

    text - 如何选择光标前的所有文本?

    php - 用于插入 PSR-0 命名空间的 Sublime Text 片段

    java - 在 C9.ide 上创建自定义 Java Runner(步骤 1 已完成)

    angular - 任何使 Angular View 模板更智能的 sublime 插件

    python - 使用 Python 以外的语言为 Sublime Text 3 创建插件

    sublimetext - Sublime Text 3 中内容以语言为条件的片段?

    python - Sublime Text : show current outer element name

    python - 在 Sublime Text 3 插件中获取当前行