How can I point Visual Studio 2008 to a new path for projects? - visual-studio

I didn't see the option to point the workspace (or it's VS equivalent, I'm still learning the terminology for Visual Studio, but it is called a workspace in Eclipse) to My Documents/Programming instead of -- well -- wherever it is now.

What Craig said, plus if you do want to change the default it's in Tools -> Options -> Projects And Solutions.
I've never changed the default and never created a solution/project in the default location, which might tell you something about how relevant it is...

Tools -> Options -> Projects & Solutions.
There is a Visual Studio Projects box.

When you create the project you can specify whatever directory you want, you are not limited to the default.

Related

Where are the default file/folder ignore rules for Visual Studio TFS stored?

When I add a solution to TFS through the Visual Studio 2013 "Add solution to source control" menu option certain (build output) files and folders are automatically ignored. I know I can create a .tfignore file to customise this behaviour, and that is not what I'm asking about. Can anyone tell me where the default Visual Studio standard exclusion list is stored?
See https://stackoverflow.com/a/43227500/117965
File is located at %LocalAppData%\Microsoft\Team Foundation\7.0\Configuration\VersionControl\
I don't think there is a list, Visual Studio just places common Binary files onto the "Excluded" tab. It has been this way since TFS 2010. I don't even think messing with the Team Project Collection's Source Control options for multiple checkouts can help.
If there is a list, I'd guess it is in the registry somewhere.

Changing 'save' settings of Visual Studio 2010

I am currently trying to change the settings of where VS saves my project and I cannot find how to change it, I've tried looking this question up but there seem to be no question like this. Any idea where can I make this change?
Tools -> Options -> Projects and Solutions
On the Tools menu, select Options.
From the Projects and Solutions folder, select General.
In the Visual Studio projects location text box, enter a location for files and projects.

Change Preferred Language in Visual Studio 2008

When you first install Visual Studio it asks you what your preferred language is and I chose VB. I am now becoming more of a C# guy, but everytime I want to go create a new project. I have to click Other Languages>Visual C#. Is there any way to not have to go through that process. I have seen other people in videos have it like this and I cant seem to find a setting for it. Thanks
Tools -> Import and Export Settings... -> Reset all Settings. Then select C# when asked.
Note that this will likely remove some of your other IDE settings.

Resetting a Visual Studio C++ project's settings

I changed some parameters in a Visual Studio C++ project, and now I don't remember how to "go back". Is it possible to reset the build settings?
I don't mean the IDE settings (menu Tools -> Import and Export Settings).
Am I the only person that can read?!
The only way I know how to reset a "Parameter in a Project's Settings",,,
Is to open the Project file(csproj, vcxproj) with a text editor, and remove the block defining that parameter.
If you wanted to reset the Allow Isolation value, you would delete this text.
<AllowIsolation>true</AllowIsolation>
When project files are loaded by visual Studio, values which are not explicitly defined in the file, are assumed to be using the default. This will only work if the property has a default value(can't change some).
NOTE: This is NOT the same as Deleting the value from the Project Properties Dialog in VS. That method writes a blank value to your project file.
The command "devenv /resetsettings" will restore Visual Studio back to its original factory state.
You can find list of devenv switches here.
You may be able to get the previous/saved version of your Visual Studio project (*.vcproj) from your software version control system.
As many wrote here before, there is a need to reset your visual studio to default settings. Just follow this: https://msdn.microsoft.com/en-us/library/ms247075(v=vs.90).aspx
Here is the awful method I used in Visual Studio 2022.
In "Property" pages, expand the individual configuration you want.
Click "All Options" and find the bold options you had changed.
To restore the defaults, click the options and select "<inherit from parent or project defaults>".
Click "Apply", then it will recover its original value.
Otherwise, you can compare the *.vcxproj with the project templates.

How to Export/Import Toolbars in Visual Studio

I export my settings in Visual Studio and if I ever move to a new machine or have problems, I use those backed up settings to restore Visual Studio to the way I like it. It also allows me to maintain a consistent development environment between the various machines that I use.
This works great for keybindings, syntax highlighting, user tools, pretty much everything except for the toolbar locations and customizations. Whenever I move to a new machine and restore the settings, the toolbars are not affected. I have spent a fair amount of time setting up toolbars with my macros, external tools, etc and cut'n'pasted icons in for them. I hate losing all that work.
Does anybody know how to back up and restore the toolbars' locations and customizations? If it is not a feature of Visual Studio, is there an addin that will do the job?
Edit
As mentioned below, the Menu and Command Bar Customizations in Import and Export Settings is supposed to do this, but when I re-import my previous settings, I get
Error 1: Menu and Command Bar Customizations: The version of command bar settings being imported is not supported. All the command bar settings have been ignored.
The settings I am trying to re-import were exported earlier this month with the same version of Visual Studio. The only difference is that I am now running 64 bit as opposed to x86. I didn't think that would make a difference though since the settings files are XML.
Any ideas?
I have finally found the solution to this. There is a known bug in Visual Studio and there are two workarounds given. The first workaround does not apply, but the second worked.
To Backup your toolbars:
Copy the file CmdUI.PRF from the path %AppData%\Microsoft\VisualStudio\X.Y\1033 to the same directory as your exported .settings file.
where X.Y is either of 8.0, 9.0, 10.0 or 11.0 depending on your visual studio version (2005, 2008, 2010 and 2012 respectively).
To Restore your toolbars:
Make sure Visual Studio is closed and copy the backed up file back to the original location.
For the benefit of others, as you mentioned this feature doesn't seem to be supported across versions of Visual Studio, presumably because of a change in the DTD/XSD for the settings file? At any rate, here's where the settings for your custom toolbars lie in the "Import and Export Settings..." dialog:
Note: Your options may look different, depending on the settings you exported.
I have not tried it, but "Tools\Import and Export Settings..." maybe will let you export a .vssettings file you can then take to another box.
See also
http://blogs.msdn.com/saraford/archive/2005/04/19/409887.aspx
and other Sara 'export' tips.

Resources