Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio settings per solution/project

I am looking for a way to load solution/project specific settings for Visual Studio (2010+).

I know similar questions have been asked but my requirements are a bit different.

Here are the requirements:

  • The settings must be stored per solution or project
  • I need to be able to keep the settings as part of my source code
  • Settings should be loaded when solution or project is opened
  • The users original settings must be preserved and restored when solution/project is closed
  • Installation of any tools/plugins is not an option unless they come pre-installed with Visual Studio. Projects like http://editorconfig.org/ are promising but until there is a big user base they are not an option.

Just to provide a bit more context... I want to change the "Keep tabs", "Tab size" and "Indent size" settings for Visual Studio.

like image 963
Kristoffer Ahl Avatar asked Oct 13 '12 21:10

Kristoffer Ahl


People also ask

How do I view project settings in Visual Studio?

You access project properties by right-clicking the project node in Solution Explorer and choosing Properties, or by typing properties into the search box on the menu bar and choosing Properties Window from the results.

How do I change project settings in Visual Studio?

In Visual Studio, you can access project settings by right-clciking the projects node in Solution Explorer, and choosing "Properties" from the context menu (not to be confused with the "Properties" folder that is in some Elements projects).

What is the difference between solution and project in Visual Studio?

A project is contained within a solution. Despite its name, a solution isn't an "answer". It's simply a container for one or more related projects, along with build information, Visual Studio window settings, and any miscellaneous files that aren't associated with a particular project.


1 Answers

From your requirements, you should be using workspaces per solution/project

Hope this helps

like image 152
Clayton C Avatar answered Nov 15 '22 19:11

Clayton C