Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
vb.net Reorganize and Regions #298
When reorganizing code (for the Active Document) and you have set an option for Reorganizing > Regions the code will generate C# regions instead of VB regions.
Steps to recreate
The created regions have the C# syntax insead of the VB.NET syntax. One of the classes that should be modified is codemaid / CodeMaid / Logic / Reorganizing / GenerateRegionLogic.cs a check on the code type should be made and the code should be generated as accordingly.
Regions in VB.NET are defined as follows:
Region "name of region"
End region cannot be named.
Thank you for reporting the issue, I have reproduced it. We recently enabled support for VB reorganization, but we did not intend to enable region support for VB as that would require updates in a handful of other areas as well. At a minimum we should make sure that region logic is bypassed during reorganization for VB.
I've made several updates to more fully provide region support for VB. This should resolve your original issue as well as a few others related to VB region support.
The CI channel where we normally test is currently being upgraded for VS2017 support, but this will be present in the next release.