codecadwallader / codemaid

CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding.
http://www.codemaid.net
GNU Lesser General Public License v3.0
1.92k stars 362 forks source link

Sort selected methods by alphabet. #837

Open DasOhmoff opened 3 years ago

DasOhmoff commented 3 years ago

Hello, thanks for your support and this plugin.

Sometimes one wants to sort some functions in his code. For example in my test classes I would like to sort only my test functions alphabetically, it would be great to have such a feature.

My idea would be to put it into the CodeMaid Spade: image

codecadwallader commented 3 years ago

Thanks for the suggestion! That makes sense and I like the idea of using Spade to select which items since it has that capability already.

It could be confusing what will happen if you select items that are not next to each other in the list. Would they all move up in the file to the first member?

DasOhmoff commented 3 years ago

It could be confusing what will happen if you select items that are not next to each other in the list. Would they all move up in the file to the first member?

Yeah, that seems to make sense. Alternatively this sort alphabetically context menu could also not show up if there is a gab between the methods, as I don't think people would use it like that.

DasOhmoff commented 3 years ago

Sorry, closed accidentally. Reopened.

DasOhmoff commented 2 years ago

Hey, is there any progress on this?

codecadwallader commented 2 years ago

No, it does not look like it.