IntelliJ IDEA (Linux): Go to beginning/end of line

You can go to the beginning or end of the line using Home and End. But I set some shortcuts for these actions.

First, go to Settings > Keymap

Search one of the following in the search box and set a shortcut for it. For example, I used these shortcuts:

  • Move Caret to Line End Alt + L
  • Move Caret to Line Start Alt + J

Additional shortcuts:

  • Move Caret to Link End with Selection Alt + Shift + L
  • Move Caret to Link Start with Selection Alt + Shift + J
  • Add Selection for Next Occurrence Alt + E
  • Unselect Occurrence Alt + Shift + E

If anyone else is wondering this 2 1/5+ years after it was answered like I was, you have to hit Fn + either left or right arrows.

I just switched to Ubuntu and relied HEAVILY on the command button and its killing me now that everything is so different.


I'm not familiar with IntelliJ, but in most of the editors you can simply use the "Home" and "End" buttons for that.