1

With your example of "a class that is declared in the main method of my application" Visual Studio already allows you to do that natively (has done since VS2017), simply right click the name of the class then select 'Quick actions and refactorings' and then "Move type to xxxx.cs" Reference: https://windowsdebugging.wordpress.com/2017/03/...


Only top voted, non community-wiki answers of a minimum length are eligible