【问题标题】:In VSCode, when I try to use the shortcut to copy a line, Ubuntu is triggering a shortcut to move to a different workspace?在 VSCode 中,当我尝试使用快捷方式复制一行时,Ubuntu 正在触发移动到不同工作区的快捷方式?
【发布时间】:2020-06-22 19:02:54
【问题描述】:

当我在 Visual Studio Code 中工作并尝试使用 Copy Line Down (Alt + Shift + Ctrl + Down Arrow) 的快捷方式时,似乎 Ubuntu 正在接管并触发切换到不同工作区的快捷方式。

我已经检查了 Ubuntu 的键盘快捷键,似乎唯一可以执行此操作的快捷键映射到 Shift + Super + PageDown。我在映射到同一快捷方式 (Alt + Shift + Ctrl + Down Arrow) 的键盘快捷方式中看不到任何内容。我在这里错过了什么吗?有关如何纠正此问题的任何建议?

【问题讨论】:

    标签: ubuntu visual-studio-code keyboard-shortcuts


    【解决方案1】:

    如果你想复制一整行,你可以使用 Ctrl + C 而不高亮任何东西(只要留在行中)。 如果你想移动一条线,你可以使用 Alt + 移动这条线和 Alt + 下移线。

    【讨论】:

      【解决方案2】:

      在 VS 代码中上下复制一行;

      alt + shift + UP (or DOWN key).
      

      这里还有一些捷径可以帮助你在其他情况下;

      Alt + up or down (moves the whole line up or down.)
      ctrl + right or left key (jumps from word to word towards right or left.)
      ctrl + shift + right or left key(jumps from word to word and also selects in the same direction.)
      

      【讨论】:

        猜你喜欢
        • 2020-05-09
        • 1970-01-01
        • 2015-01-20
        • 1970-01-01
        • 1970-01-01
        • 2017-04-27
        • 2022-07-13
        • 2019-10-02
        • 1970-01-01
        相关资源
        最近更新 更多