dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.91k stars 4.01k forks source link

Quick actions and refactorings... Remove region #34961

Open vsfeedback opened 5 years ago

vsfeedback commented 5 years ago

Would be nice to have the option to remove a region with a refactoring. Right now you have to delete the #region and #endregion lines manually to remove them since regions are mostly considered bad practice

This issue has been moved from https://developercommunity.visualstudio.com/content/idea/522170/quick-actions-and-refactorings-remove-region.html VSTS ticketId: 842445 These are the original issue comments:

Jane Wu [MSFT] on 4/9/2019, 02:05 AM (3 days ago):

Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.

ghost commented 2 years ago

Yes, please! ReSharper has supported this for years and this is one thing I'm really missing when using Visual Studio's Quick Actions.

CyrusNajmabadi commented 2 years ago

@ameltzerMSFT Would be happy to take a PR here :)