Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio projects with multiple folders

Tags:

Is there an easy way to use multiple folders in a project with Visual Studio? It has "filters" which look like folders, but it would be really nice to be able to make folders and insert files in them inside VS. Is there an add-in or secret option to enable this behavior?

like image 251
rlbond Avatar asked Mar 14 '09 00:03

rlbond


People also ask

How do I make multiple folders in Visual Studio?

You can use drag and drop to add folders to a workspace. Drag a folder to the File Explorer to add it to the current workspace. You can even select and drag multiple folders. Note: Dropping a single folder into the editor region of VS Code will still open the folder in single folder mode.

Can we open multiple folders in Visual Studio Code?

You can work with multiple project folders in Visual Studio Code with multi-root workspaces. This can be very helpful when you are working on several related projects at one time.

How do I organize my Visual Studio project?

Next, in Visual Studio, go to the Dynamics 365 menu, then Options. Select Dynamics 365>Projects tab. Then check the checkbox labeled 'Organize projects by element type'. Finally click ok.


1 Answers

With VC++, the folders do not correspond directly with what's on your file system. They are simply used to help you organize your project in an independent manner.

The reason they have this design decision is because with C++ you typically have many include and source directories.

More on Filters:

At the top of your "Solution Explorer" window you will see a toolbar button that when hovered over says "Show All Files". If this button is pressed it does not show you a Folder/Filter structure. If this button is not pressed it shows you the Folder/Filter structure.

To add a new Folder/Filter, right click on a project of your solution and select Add -> New Filter.

Note that for each Folder/Filter that you create you can go into the Folder/Filter properties and set things such as:

  • Parse files: Whether to parse the files in this folder for auto completion
  • SCC Files: Whether the files in this folder should be considered for source control
  • Filter: Specifies the file types that this folder will hold by default.
like image 131
Brian R. Bondy Avatar answered Sep 17 '22 01:09

Brian R. Bondy