ide – In visual studio is it possible to sort the methods by name or any other criteria automatically or by using a menu?

Is it possible to sort functions or methods in Visual Studio Code?

Yes, you can use Resharper extension to sort your methods by some criteria.

For example (e.g:c#)

Resharper->Options->Languages->C#->File Layout

Select “All other members” and select “Sort by name”.

enter image description here

However, there is no such a menu and build-in function to achieve in visual studio 2022 at present. Only sort usings is supported now.
I suggest you can also raise a feature request from Visual Studio Forum.

That will allow you to directly interact with the appropriate product group, and make it more convenient for the product group to collect and categorize your suggestions.

Read more here: Source link