Move Statement shortcut formats blank lines incorrectly

Answered

I like my code to have those extra spaces on blank lines up to the tab/scope location, but moving lines using the ctrl+shift+up/down shortcut often removes most of these spaces. How do I prevent it from doing this?

btw, I recorded a short video of what I'm talking about, but I can't figure out how to attach it to this post. I used the "upload service", but I have no idea where or how to access it or how to get it on this post. Please help

Here's an imgur link for now: https://imgur.com/a/51hpYoW

0
3 comments

Hi - see if it helps to enable the following option:

0

It's already enabled. That's actually why reformatting the code, as seen in the video, puts the spaces back. I think it might actually be a bug

0

Thank you. I think I can reproduce it now.

I logged a new issue for it so that the Dev team can check the problem: https://youtrack.jetbrains.com/issue/IDEA-311402, you are welcome to follow the progress and leave additional comments there.

0

Please sign in to leave a comment.