Custom Project Order in Visual Studio Solution
Add ability to customize project order in Visual Studio solution. Now all projects sorted by name and this behavior cannot be changed via user settings.
[Deleted User] commented
How can it not be possible to sort however you want? Alphabetic is a nice default, but manual is needed when alphabetic isn't logical. People have been going crazy over this for more than a decade, and it's such a small fix. Seriously Microsoft, time to roll up your sleeves and copy Apple.
Hugo Ojendiz commented
As other comments suggest, we could just 'name-hack' our projects to have an arrangement that's significant to us, but this isn't a proper solution.
Ryan Mann commented
Also, you can already group projects, their called "Solution Folders"
Just create a solution folder for each group, then add projects to the solution folders. They are cosmetic and don't have actual physical folders, they are just for grouping projects in solution explorer and adding outside resources like "dlls, images, etc" that you don't want in a specific project.
You can control the solution folder order via numeric naming conventions like in my below post.
-> 01_Thing.Host (loads index.html from Thing.Client and hosts the api on kestrel).
-> 10_Thing.Client (existing website, not an actual project), SPA all built with node/npm/webpack
Ryan Mann commented
This has been desired for a LONG time, and it's never been done...
So what I do is change the names of my projects so they are alphabetically sorted in a way that they are in the order I want.
When I rename them, I leave the Assembly name and namespaces the way I want. The Project name is purely cosmetic in solution explorer, it has no functional impact to anything other than what order they are sorted in.
This means that while my project name is 00_Thing.Database The folder on disk is still "Thing.Database".
Just rename them ""after"" you've already added them to the solution, and you are renaming the csproj file basically, not the actual folder or assembly name.
Michael Brydie commented
+1 I want my test projects under the subject project
Goran Grubić commented
Guys, really - how ever is this request ranked compared to the others... please do it, it sounds to me an easy patch but would make my life way better. In 10+ years of active VS use I never had a Solution where alphabetical order has any semantic value. In my view the best way to have this is to have new Int32 field in project properties called: Priority, set to 0 by default so we can put - or + values. PLEASE !!! And Thanks in advance!
this is more than needed honestly alphabetically isn't always the best order (for me an probably for a lot of developers as well)
Vincent Croquette commented
+1 alphabetical is almost never natural order
martin tosas commented
I've been wanting this feature since visual studio 2003!!
I love this idea!
I would love to order no just Projects, but also Files in my project folder, after renaming file, it is not ordered correctly
I would like to add nested sorting too. For example, i want projects to be ordered by logic but in one project the folders are ordered alphabetically and in the other project folders again are ordered by their function.
Aaron Bauman commented
This is a great suggestion. I would even say that not only can we manually sort our projects, but perhaps there could be a grouping of projects. Presentation Layer, Service Layer, Repository Layer, etc
Great idea !
I would like this!
Good idea, A logical order is prefered over alphabetical.