Question

I have switched from OS X to Linux, and trying to get used to the different keyboard shortcuts in IDEA. One very important thing I cannot find is "move cursor to beginning/end of line" (Cmd-Left and Cmd-Right on OS X). Also looking at the reference card doesn't reveal anything useful.

Was it helpful?

Solution

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

OTHER TIPS

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.

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

For me, on Ubuntu, it is Fn+Home, Fn+End to move to beginning and end of line.

I reinstalled my IntelliJ and since IdeaVIM plugin was not installed I decide to just google how to do that with IntelliJ defaults and I gotta tell ya... Fn+Home/Fn+Arrow is not convenient in a slightest

Two possible answers:

  1. Install the IdeaVIM plugin (You should not do that if you are not familiar with VIM)

  2. Remap those keys to something that is easier to access

Quick update:

if you are using the latest Intellij IDE version, pressing the Ende or the Pos1 buttons will achieve your needs. btw I am using a German keyboard.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top