Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move text cursor to previous string when I am at the left corner of current string

Is it possible in IntelliJ IDEA to move cursor to previous string when it is at the left corner of current string and I am pushing on left arrow keyboard key.

Let me explain:

1) Text cursor at the left corner of line 4

First state

2) I am pushing on left arrow keyboard key

Second state

3) All I want to get - move text cursor to end of previous (3) line

Third state

But IDEA not moving text cursor from previous line, it just stays there.

Help me please.

like image 778
Artem Zinnatullin Avatar asked Mar 19 '13 20:03

Artem Zinnatullin


1 Answers

This is because by default IntelliJ allows placing the caret after the end of line. When you press your key, it does not move as it would have to go to the infinite right side of your file, which is not very convenient (at least that's how I understand it :p).

Go to Settings > Editor and uncheck Allow placement of caret after end of line, this will solve your problem.

like image 147
Bastien Jansen Avatar answered Oct 31 '22 23:10

Bastien Jansen