How do I deactivate Delphi's "Cursor beyond end of line" feature? When I click in the empty space to the right of a line, or when I navigate to a line with the arrow keys, I want the cursor to be at the line's real end, not in the "virtual space".
AFAIK, you cannot. The code editor has always had that behavior built-in. You can tell it to not go past End-Of-File, but not End-Of-Line.
When possible you can set a macro on one of the mouse buttons to hit the combo "left-click" and "End" when clicked. Not the ideal situation but it does the trick.
来源:https://stackoverflow.com/questions/17977490/how-do-i-disable-cursor-beyond-end-of-line