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
19.04k stars 4.03k forks source link

Move method to partial #48026

Open vsfeedback opened 4 years ago

vsfeedback commented 4 years ago

This issue has been moved from a ticket on Developer Community.


Add function to Code refactoring. The function is like: split class to partial classes and make them in a folder. Just like the Winform partial classes. Form1.cs/Form1.Designer.cs are in a folder we need this function sometimes, especially when we create many tabpages, we want to split the Main class(like Form1.cs) to Form1.tabPage1.cs, Form1.tabPage2.cs, ...


Original Comments

Jane Wu [MSFT] on 8/22/2019, 02:21 AM:

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.

mikadumont commented 4 years ago
  1. Offer to move a method to a partial class if it already exists
  2. Create a new partial class if one does not already exist