apologies as I realise this shouldn't be in stackoverflow and one of his sisters spin off's.
But its driving me insane, but going to the end of a line when I click on the white space of a line.
I have a fresh install on a different machine and it doesn't do this, so I know its my version.
I have clicked the small 'reset' in settings with no luck.
You likely have either "Column Selection Mode" or "Allow placement of caret after end of line" enabled.
To turn off Column Selection Mode, see https://www.jetbrains.com/idea/help/selecting-text-in-the-editor.html#column_selection.
To turn off caret after EOL placement, deselect the preference in Settings > Editor > Virtual Space.