Reputation: 67280
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.
Upvotes: 16
Views: 22025
Reputation: 482
On Windows, you can just do
Fn + <- // To move to the beginning of the line
Fn + -> // To move to the end of the line
Upvotes: 0
Reputation: 2203
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.
Upvotes: 0
Reputation: 2787
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:
Alt + L
Alt + J
Additional shortcuts:
Alt + Shift + L
Alt + Shift + J
Alt + E
Alt + Shift + E
Upvotes: 8
Reputation:
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:
Install the IdeaVIM plugin (You should not do that if you are not familiar with VIM)
Remap those keys to something that is easier to access
Upvotes: 0
Reputation: 589
For me, on Ubuntu, it is Fn+Home, Fn+End to move to beginning and end of line.
Upvotes: 1
Reputation: 192
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.
Upvotes: 17
Reputation: 743
I'm not familiar with IntelliJ, but in most of the editors you can simply use the "Home" and "End" buttons for that.
Upvotes: 30