Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

c# #region/#endregion mismatch

Anyone know a good way to find out where i have an extra #region or #endregion in my code? I have about 5000 lines of c# code and i'm trying to do it manually right now. Any help is appreciated.

like image 325
toosweetnitemare Avatar asked Dec 21 '22 13:12

toosweetnitemare


1 Answers

Do CTRL+M CTRL+L - to close up all the regions. Then expand them one at a time on the left (little + sign) until you see #region XXX that doesnt have matching #endregion

Should look like this:

Mismatch

like image 59
SwDevMan81 Avatar answered Jan 03 '23 12:01

SwDevMan81