How can I remove a code formatting rule

I would like to exclude a rule from code formatting. Specifically "Align similar code in columns => Variables and local constants". When it's initialization I prefer the var declarations to be aligned, but when each subsequent declaration is a logical continuation of previous operation the alignment is not desired. So I would like it to be up to me whether it should be aligned or not. However when I uncheck this rule in the formatting settings and apply formatting for a file with the Ctrl + Alt + Enter it removes my manual alignments. I would like to find a solution to apply all other rules except this specific one.

1 comment
Comment actions Permalink


Could you please collect all dotSettings files via ``ReSharper | Manage Options | right-click on each layer | Export to file`` and provide them using our service

By the way, do you have .editorconfig used in your solution?

Thank you.


Please sign in to leave a comment.