有没有一种方法可以防止ReSharper格式化代码区域 [英] Is there a way to keep ReSharper from formatting a region of code

查看:160
本文介绍了有没有一种方法可以防止ReSharper格式化代码区域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直都在使用ReSharper的代码清理,但是有时我格式化的代码比ReSharper的格式化程序更易于阅读.有没有一种方法可以用注释或某些标记方式标记文件的一部分,以使其不格式化该部分.

I use ReSharper's code cleanup all the time, but sometimes I have code formatted in a way that makes it easier to read than ReSharper's formatter makes it. Is there a way to mark part of your file with comments or something to make it skip formatting that portion.

(我不是在谈论检查,我知道如何让ReSharper忽略进行检查的区域)

(I'm not talking about inspections, I know how to have ReSharper ignore regions for inspections)

推荐答案

我与Resharper支持小组讨论了这个问题,他们的回答是:

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.

这篇关于有没有一种方法可以防止ReSharper格式化代码区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆