Especially on the Desktop IDE: Unless an error occurs and compiling or debugging run are stopped, cursor should be at the same position as before. Right now, it always moves to the end.