我正在寻找一种方法来保持我的代码区域有一定数量的制表符缩进。 选项卡表示与其上方字段的关系。
即
public string Foo1 pubic string F1Bar1 public string Foo2 public string Foo3 public string F3Bar1 public string F3Bar2 public string F3B2Foobar1 public string Foo4运行自动格式当然会对齐所有这些字符串,有没有办法标记这部分代码被自动格式化程序忽略。 保持缩进,而其余代码确实格式化?
(Resharper可供我使用)
I'm looking for a way to keep a region of my to code have a certain number of tab indents. The tabs are representing a relation to the field above it.
I.e.
public string Foo1 pubic string F1Bar1 public string Foo2 public string Foo3 public string F3Bar1 public string F3Bar2 public string F3B2Foobar1 public string Foo4Running an auto format would of course align all these string, Is there a way to flag this part of code to be neglected by the auto formatter. keeping the indents while the rest of the code does get formatted?
(Resharper is Available for me)
最满意答案
无法在ReSharper 7.0或更早版本中执行此操作。 但您可以在此处投票支持此功能http://youtrack.jetbrains.com/issue/RSRP-9997 。
No way to do it in ReSharper 7.0 or earlier. But you can vote for this feature here http://youtrack.jetbrains.com/issue/RSRP-9997 .
更多推荐
发布评论