是否有可能通过键盘快捷键跳转到作用域的末尾,例如方法、循环、if语句、switch语句等?
我知道可以使用controlshiftp实现,但它只能跳转到闭合大括号的开头,而不能跳过它。例如:
这是我的代码。
if (x < 10) {
System.out.println("X is less than ten.");| //my cursor is '|'
}
当我按下
control+shift+P
时,我的光标跳到这里:if (x < 10) {
System.out.println("X is less than ten.");
|} //my cursor is '|'
但是我想让它在这里显示。
if (x < 10) {
System.out.println("X is less than ten.");
}| //my cursor is '|'
这是可能的吗?