是否有任何快捷键可以将光标移动到行首和行尾?我们可以使用任何快捷方式来实现相同的功能,而不是左右移动箭头吗?
最佳答案
这个来自documentation :
The editing capabilities of JShell are similar to that of other common shells. Keyboard keys and key combinations provide line editing shortcuts. The
Ctrl
key andMeta
key are used in key combinations. If your keyboard doesn’t have aMeta
key, then theAlt
key is often mapped to provide Meta key functionality.
您可以使用:
Ctrl+A
将光标移动到行首,
Ctrl+E
将光标移动到行尾。
关于java - 用于行首和行尾的 JShell 快捷方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47584716/