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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 20:51:33  来源:igfitidea点击:

Eclipse shortcut to end of line and beginning of line

eclipsekeyboard-shortcuts

提问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+endand Shift+Initwhich 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

Endkey to move on end of the line, Homekey 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 Homeand Endkeys as well for this purpose.

正如其他答案中提到的,我们也可以为此目的使用HomeEnd键。