Eclipse(C++)是否有类似于Vs Code中的Ctrl+D快捷键?

huangapple go评论50阅读模式
英文:

Does Eclipse(C++) has any shortcut like ctrl+D in Vs Code?

问题

我知道这个快捷方式。

选择文本后:

  • 下一个出现是Ctrl+K。

  • 上一个出现是Ctrl+Shift+K。

但我想找到类似于VSCode中的Ctrl+D的另一个快捷键来进行多重选择,只需要编辑一次,而使用Ctrl+K则需要多次编辑。

英文:

I knew about this shortcut.

After selecting a piece of text:

  • Next occurrence is ctrl+k.

  • Previous occurrence is ctrl+shift+k.

But I want to find another short cut like Ctrl+D in vscode to multi select, and only need to edit one time, with ctr+k I need to edit so many times.

答案1

得分: 1

以下是翻译好的部分:

  • 多重选择命令,但默认情况下未分配键盘快捷键给它们。

  • 您可以在首选项 常规 > 快捷键 中自己分配键盘快捷键给以下多重选择命令(按两次<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd>):

    • 将所有匹配项添加到多重选择,例如 <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd>
    • 相对于锚定选择向下进行多重选择,例如 <kbd>Alt</kbd>+<kbd>K</kbd>
    • 相对于锚定选择向上进行多重选择,例如 <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd>
    • 多重插入点向下,例如 <kbd>Alt</kbd>+<kbd>.</kbd>
    • 多重插入点向上,例如 <kbd>Alt</kbd>+<kbd>,</kbd>
    • 结束多重选择,例如 <kbd>Esc</kbd>

另请参阅我的演示视频

英文:

There are multi-select commands, but by default no keyboard shortcuts are assigned to them.

You could assign keyboard shortcuts to the following multi-select commands yourself in the preferences General > Keys (hitting <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>L</kbd> twice):

  • Add all matches to multi-selection, e.g. <kbd>Ctrl</kbd>+<kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd>
  • Multi selection down relative to anchor selection, e.g. <kbd>Alt</kbd>+<kbd>K</kbd>
  • Multi selection up relative to anchor selection, e.g. <kbd>Alt</kbd>+<kbd>Shift</kbd>+<kbd>K</kbd>
  • Multi caret down, e.g. <kbd>Alt</kbd>+<kbd>.</kbd>
  • Multi caret up, e.g. <kbd>Alt</kbd>+<kbd>,</kbd>
  • End multi-selection, e.g. <kbd>Esc</kbd>

See also my video showing this in action.

huangapple
  • 本文由 发表于 2023年3月7日 08:50:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/75657129.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定