How can I set Resharper to wrap, say, the generated equality members with regions when selected from the Alt+Insert menu?
Thanks
对话框底部通常有一个“在区域中换行”选项,但不是针对此选项。我会将其作为请求提交给 JetBrains。目前,您必须选择生成的方法并使用 ctrl->E,U,5 (环绕快捷方式)来获得预期的结果。
it doesn't really answer your question, but I just can't resist to try to convince you NOT to use regions. Why would you want to do it? The obvious disadvantages of regions are:
I believe using regions makes sense pretty much only for automatically generated parts, e.g. WinForms designer stuff. In most (all?) other cases it is much better to refactor the code, extract some extra classes or methods, etc. to make it clear.
您可以突出显示您感兴趣的文本,并使用 CTRL + k 的 Visual Studio 快捷键,从菜单中选择#region。