Disable Reformat for whole file

Hello!

I would like to disable the "Reformat file" and instead just reformat my selected parts if possible.
That is working fine if I select parts. Is there also a way to reformat all changed parts?

Thanks!

4 comments
Comment actions Permalink

What do you mean by "I would like to disable the "Reformat file""?
Just don't invoke that action?!

There is a action with shortcut ctrl-alt-shift-L which brings up a dialog prior to reformatting.
In that dialog you can choose Scope "Only VCS changed text".

0
Comment actions Permalink

That is what I am looking for. But I don't see that dialog.
Maybe I selected to remember my decision. How can I change it?

0
Comment actions Permalink

Best way to search for an action:

Ctrl-Shift-A, then type "reformat".

Or go settings -> keymap and search there.

0
Comment actions Permalink

There is a separate reformat action which displays a dialog: https://youtrack.jetbrains.com/issue/IDEA-88641#comment=27-926549 .

0

Please sign in to leave a comment.