Eclipse 行尾和行首的快捷方式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17505931/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Eclipse shortcut to end of line and beginning of line
提问by fernandohur
What is the eclipse shortcut to move the cursor to the beginning of line or end of line'?
将光标移动到行首或行尾的 eclipse 快捷方式是什么?
In vim I use '0'
and '$'
respectively in normal mode. The closest I have found is Shift+end
and Shift+Init
which does move the cursor, but also selects the whole line.
在 vim 中,我分别在正常模式下使用'0'
和'$'
。我发现的最接近的是Shift+end
并且Shift+Init
它确实移动了光标,但也选择了整行。
回答by gview
For Mac people:
对于 Mac 用户:
Goto start of line: command <-
(command and left arrow key)
转到行首:( command <-
命令和左箭头键)
Goto end of line: command ->
(command and right arrow key)
转到行尾:( command ->
命令和右箭头键)
回答by Branislav Lazic
End
key to move on end of the line, Home
key to move on beggining of line.
End
键在行尾移动,Home
键在行首移动。
Same for NetBeans and IntellijIDEA.
NetBeans 和 IntellijIDEA 也是如此。
回答by Omkar
In Windows, for any editor including Eclipse, we can use following:
在 Windows 中,对于包括 Eclipse 在内的任何编辑器,我们可以使用以下内容:
Go to beginning of line: Fn <-
转到行首: Fn <-
Go to end of line: Fn ->
转到行尾: Fn ->
As mentioned in other answers, we can use Home
and End
keys as well for this purpose.
正如其他答案中提到的,我们也可以为此目的使用Home
和End
键。