Why is Reformat on Save restricted to Explicit Save?

I was looking forward to this feature but as it turns out it works only when you save explicitly. I almost never save explicitly since files get saved on exit or debug so my files don't get formatted. 

I really would like to see an option that reformats on any save so I can sure my files are formatted consistently. 

 

1
3 comments

I'm addicted to pressing Ctrl-Shift-S, especially with "unnecessary whitespace is an error" and "remove unnecessary whitespace on save" active.

0

I would like to see a reply from JetBrains or a workaround 🙂

0

Hello, 

Thanks for your interest in this feature. It is being tracked under issue RIDER-70818 Allow code clean-up on Any save (not only explicit save) You may upvote it and subscribe for updates. While we don't have an ETA to share, please rest assured it's on our radar and we will update the ticket once we have made any meaningful progress. 

Thanks,

Tom

1

Please sign in to leave a comment.