[英]VS2015, #endregion is missing how to find it?
有没有快速的方法可以找到隐藏在代码中的缺失 #endregion,编译器错误总是指向 C# 代码的结尾,而没有指示它在哪里丢失。
Ctrl + Shift + F for a #region|#endregion
with regex flag on. Ctrl + Shift + F用于打开正则表达式标志的
#region|#endregion
。 Then look through search results for correct structure.然后查看搜索结果以获取正确的结构。 If you do not have nested regions, they should alternate.
如果您没有嵌套区域,它们应该交替。 If you have, I expect you to have correct indents, so first
#region
without #endregion
with same indent in previous line is what you are looking for.如果你有,我希望你有正确的缩进,所以第一个
#region
没有#endregion
与前一行相同的缩进是你正在寻找的。
Note that you can use Ctrl + Shift + F for searching in a single file too.请注意,您也可以使用Ctrl + Shift + F在单个文件中进行搜索。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.