Debug formatter

I'm evaluating rider. One of the hang ups is that even with .editorconfig support, it's formatting code differently than vs does it. There seems to be much more control in rider which is great, but I can't figure out which settings are causing lines to format differently. It would help if I could get some debug output to figure out which rules are causing lines to change so that I can tweak my editorconfig file to minimize differences between vs and rider formatting. 

1
2 comments

Anyone ever figure this out? I would love to be able to step through Rider's formatter to understand what preference is being applied when code gets formatted and you are interested to change it. It is often a blind search over the many settings to try and uncover which rule is being applied.

0

Hello everyone,

The upcoming Rider 2020.3 EAP build (planned for the end of next week) will have an ability to configure formatting and even to auto-detect formatting settings for a selected code block or for the whole solution. Select code in question > Alt-Enter > Format selection > Configure or Detect.
 
You can find Rider EAP builds here: https://www.jetbrains.com/rider/nextversion/
0

Please sign in to leave a comment.