Is there a way to keep ReSharper from formatting a region of code

夙愿已清 提交于 2019-11-29 05:53:06

I had a discussion with Resharper support about this, their answer:

Thank you very much for this information! We will discuss if we can support such formatting style in one of the future versions.

Probably not, but you can try writing your own Resharper plugin

As of writing this, you can actually do it the other way around. I.e., format only a selected area of code. Just select the desired block, hit Alt+Enter and type Format Selection. Meanwhile Silent Code Cleanup still cleans up the whole file. I agree, that a comment-styled exclusion would be very nice.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!