You know you can make a #Region mess in .NET, python & Java?
#region I-Need-A-Class
…
#endregion
#<editor-fold desc="I-Got-No-Class">
…
#</editor-fold>
//region Never-Heard-Of-A-Class
…
//endregion
These are only good for generated code & large blocks of required legalese
#REGION
4/6 No classes. All code is single batch of statements, logical units separated by whitespace or #region tags. Never have to refactor again!
Ever see #Region used for wrapping code that should have been a class? Blank lines in a method are signs that maybe that should be 2 methods
@mistersql Idea from this video, around 19m https://www.youtube.com/watch?v=l1Efy4RB_kw
♡ 0 ↻ 0
This is the value #region notation brings to your code:
#region Methods with bugs
#endregion
#region Methods with return values
#endregion
This is the value #region notion brings to your code:
#region White Space
#endregion
#region Not White Space
#endregion
Visual Studio Clippy: "It looks like you are using #Region in place of a class or a method, would you like me to help you with your résumé?"
There isn't enough anti #region material on the web: http://www.stevefenton.co.uk/Content/Blog/Date/201006/Blog/The-Dot-Net-Campaign-Against-Regions/ Go forth and make more
Vote to get microsoft to fix or remove #REGION tags https://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/4211213-eliminate-the-region-directive-
You can fill your code with #region #endregion tags, but I can remove them faster. Just despair already and stop typing #region.
#Region This is a tweet. #EndRegion Ah, I am now awash in a false sense of tidyness. Thankyou #region tag.
There is a bug in #VisualStudio. #VS2010 It fails to automatically issue a hit contract on the developers that type #Region or #EndRegion
There is an army of maintenance developers preparing to remove your #REGION wrappers. Just despair already and stop using them.
The programmers vow: However innumerable #region tags are, I vow to remove them.
Why isn't there a visual studio add in to remove #Region areas as you type them?
Good =Find all "#region", Subfolders, Find Results 0, "Current Project", "*.*" Matching lines: 0 Matching files: 0 Total files searched: 912
#resharper feature wishes: Convert #region to class refactoring. Also, auto correct #region #endregion by replacing with blank line.
#VS2010 #region #endregion is !@#%^ evil.The solution is easy, remove them all,the pro-region faction won't have the time to replace them.
#1 missing feature in #VS2010 -- remove all #Region's on keypress, on save, on check out and on check in. #2 : electrocute culprit