Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA Cursor moves to beginning of line when hitting Ctrl-S

The cursor in my IntelliJ code editor always returns to the beginning of the line (removing all whitespace) when I save by hitting Ctrl-S.

If I have code on that line and save then move to the next line, the cursor starts at the very beginning of the line (instead of indented to where that line of code should start).

This is very annoying as I am in the habit of manually saving often.

If relevant I am on IntelliJ 2016.3, Windows 7.

Any advice is appreciated, thanks.

like image 752
J. Schei Avatar asked Nov 23 '16 03:11

J. Schei


People also ask

How do I get the normal cursor back in IntelliJ?

Toggle between normal and column selection modes Press Alt+Shift+Insert .

How do I move the cursor to the end of the line in IntelliJ?

Move Caret to Line End Alt + L.

How do you go to the next line in IntelliJ?

There are shortcuts for this in IntelliJ IDEA! Simply hit Shift+Enter to start a new line below the current line or Ctrl+Alt+Enter (⌥⌘Enter on Mac) to start a new line above the current line.

What is caret in IntelliJ?

You can click the mouse in the editor to set the caret to the desired position and drag the mouse to select a continuous text block. By default, you can only set the caret at characters, whitespaces, and tabs in the current document.


1 Answers

Yes, I think it is a bug. I created an issue for it: https://youtrack.jetbrains.com/issue/IDEA-164345 You can vote for it or comment on it.

like image 157
Stephen Friedrich Avatar answered Nov 01 '22 17:11

Stephen Friedrich