Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent to Solution Folders in VS Code

Tags:

c#

.net

vs-code

In Visual Studio, one can create "Solution Folders" to group different .NET projects into a virtual folder. Is there any equivalent solution for VS Code?

I've tried installing the extension vscode-solution-explorer, but it doesn't support virtual folders.

like image 810
cash Avatar asked Sep 05 '26 00:09

cash


2 Answers

The extension vscode-solution-explorer supports virtual folder. Here are the steps:

  1. Search and install (extension id):

    fernandoescolar.vscode-solution-explorer
    
  2. Looking in sidebar for last icon named "Solution":

    Solution Explorer VS Code

  3. Click right button in file .sln and choice Create folder:

    Create Folder = New Solution Folder in Visual Studio

  4. Choice name and press enter:

    Name Solution Folder

  5. Drag yours projects for solution folder.

like image 173
Bruno Sajermann Avatar answered Sep 06 '26 14:09

Bruno Sajermann


The extension that you mentioned seems to work.

Load an existing solution, right click in the solution file > "create new folder" . A virtual folder will be created. Then, add an existing project to solution and move it to the virtual folder.

like image 34
Magnetron Avatar answered Sep 06 '26 15:09

Magnetron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!