14

What is the eclipse shortcut to move the cursor to the beginning of line or end of line'?

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.

Cœur
  • 37,241
  • 25
  • 195
  • 267
fernandohur
  • 7,014
  • 11
  • 48
  • 86
  • 1
    you can also set your own: http://stackoverflow.com/questions/12047627/eclipse-ctrla-ctrle-go-to-beginning-go-to-end-of-line – jay--bee Dec 17 '14 at 22:42
  • 2
    or install vi wrapper for eclipse: http://vrapper.sourceforge.net/home/ so you have all your vi commands available – Conffusion Aug 08 '17 at 08:18

3 Answers3

27

For Mac people:

Goto start of line: command <- (command and left arrow key)

Goto end of line: command -> (command and right arrow key)

gview
  • 14,876
  • 3
  • 46
  • 51
19

End key to move on end of the line, Home key to move on beggining of line.

Same for NetBeans and IntellijIDEA.

Branislav Lazic
  • 14,388
  • 8
  • 60
  • 85
3

In Windows, for any editor including Eclipse, we can use following:

Go to beginning of line: Fn <-

Go to end of line: Fn ->

As mentioned in other answers, we can use Home and End keys as well for this purpose.

Omkar Shetkar
  • 3,488
  • 5
  • 35
  • 50