IntelliJ IDEA - caret behavior

JavaIntellij Idea

Java Problem Overview


I am trying to figure out one thing in IntelliJ IDEA 10:

alt text

  1. current caret position
  2. where caret moves after pressing DOWN arrow
  3. where I want caret to be

Is such setting possible?

Java Solutions


Solution 1 - Java

File | Settings (or Preferences on Mac) | Editor | Allow placement of caret after end of line:

Settings | Editor | Allow placement of caret after end of line

Solution 2 - Java

Please note that this effect can also occur if you activate Column Selection Mode under: Edit -> Column Selection Mode which allows you to make square selections.

Solution 3 - Java

Press Ctrl + Alt + Insert to disable the column selection mode.

column mode

Solution 4 - Java

You can set the Caret behaviour as below shown in the screenshot:

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionXortyView Question on Stackoverflow
Solution 1 - JavaCrazyCoderView Answer on Stackoverflow
Solution 2 - JavajpheldsonView Answer on Stackoverflow
Solution 3 - JavaAmin AminianView Answer on Stackoverflow
Solution 4 - JavaArefeView Answer on Stackoverflow