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.
Toggle between normal and column selection modes Press Alt+Shift+Insert .
Move Caret to Line End Alt + L.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With