How do I remove the ability to move the cursor after then end of line in IntelliJ?
540
votes
It's funny - I want exactly the opposite for Eclipse, to enable virtual space. But I see it's currently an unresolved bug (21000).
– Barry Kelly
Go here to vote for "unlimited whitespace" to be turned off as the default: youtrack.jetbrains.com/issue/IDEABKL-6478
– rogerdpack
Guys, could you provide more information on why that virtual space is inconvenient for you?
– denis.zhdanov
@denis.zhdanov I want to be able to press right-arrow and get to the beginning of the next line from the end of the current, or click arbitrarily to the right of a line and have the cursor end up exactly on the end of the line. I seldom want to put the cursor an arbitrary distance beyond the end of existing text and have the editor insert a bunch of whitespace for me when I start typing. I understand some people might prefer being able to do that, but for me I'd rather have it work as I'm used to every other text editor working. It's great that it's configurable, everyone's happy.
– nairbv
Intellj 13 has changed the default for this to be off.
– Bjorn
6 Answers
783
votes
227
votes
20
votes
To get the expected behavior where indentations are respected when you click on a line :
In Preferences > Editor > Virtual Space
Check :
Allow placement of caret inside tabs.
Uncheck :
Allow placement of caret after end of line.
This was really annoying to me and makes very little sense as a default behavior to me.
19
votes
4
votes