Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change order of files in solution explorer

In Visual Studio, how do you change the order of your source files?

By default, it seems that they go in alphabetical order but I want to put them in a more logical order.

like image 724
Mark Lalor Avatar asked Apr 29 '11 01:04

Mark Lalor


People also ask

How do I reorder a file?

To change the order of a file or folder, click the dots on to the left of the folder or file's name that you're interested in. Dragging while clicking will move the file or folder up and down.

How do I change the order of projects in Visual Studio?

In order to set the Build order for your Solution, right-click on the Solution in Solution Explorer and Select Project Build Order: Your Project Dependencies should be set correctly which is used to determine the Build order by Visual Studio.

How do I change the order of files in Vscode?

If you want to change it, click the upper left menu File > Preferences > Settings and search for “explorer. sortOrder”. A dropdown lets you select from five possible options: default – Files and folders are sorted by last modified date, in descending order.


1 Answers

You can't change the order that the Solution Explorer displays your files. If you need a more logical grouping, consider using folders and namespaces.

like image 137
vcsjones Avatar answered Sep 18 '22 13:09

vcsjones