【问题标题】:How to efficiently move the keyboard cursor如何有效地移动键盘光标
【发布时间】:2020-05-12 16:06:53
【问题描述】:
public class Hello2{
    public staic int sum(int n, int m)
    {
        return n + m; // here is cursor
    }

    //I want move to cursor here
}

我想把括号下的光标向下移动

有没有一种有效的方法来向下移动括号而不是键盘上的箭头键?

【问题讨论】:

  • 光标从哪里开始?您是否只想从您所在的位置移到下一个括号下方?
  • // here is cursor 开始
  • 我想将光标移动到//I want to move cursor here
  • 我想在写一个方法后移动光标
  • 在这种情况下,Ctrl+Shift+P 后跟 Ctrl+Return。但更一般地说,按 Alt+Shift+Up 直到您选择了所需的内容(在您的情况下为方法),通过按右箭头键跳转到选择的末尾并使用 Ctrl+ 在当前行下方插入新行返回。

标签: eclipse visual-studio-code ide text-editor


【解决方案1】:

ctrl + n移动光标到下一行

enter换行

enter换行

你来了?

【讨论】:

  • ctrl + n 将光标移动到下一行??
  • 是的。这是在 keybinding.json 中定义的默认行为。你可以试试看。
猜你喜欢
  • 2016-06-16
  • 1970-01-01
  • 2016-07-18
  • 1970-01-01
  • 1970-01-01
  • 2019-08-09
  • 2019-11-19
  • 2022-10-13
  • 1970-01-01
相关资源
最近更新 更多