Only reformat modified lines

Is it possible to have the reformatting tool only touch the lines that are already modified in git?

Right now when I edit a file and reformat, it makes changes all over the file which adds noise in the diff tool.

0
3 comments

Hi,

Looks like this option can help.

0

Thanks!

Right now it only works on Ctrl+Shift+S on windows. Can I configure this to run on any kind of save (even auto save when IDE is idle)?

0
Unfortunately, it is not yet implemented: https://youtrack.jetbrains.com/issue/RIDER-70818/Allow-code-clean-up-on-Any-save-not-only-explicit-save. Please feel free to upvote and leave comments for this YouTrack ticket.
0

Please sign in to leave a comment.