Take the 2-minute tour ×

I am changed the toolbar and window (like solution explore, properties windows etc.) arrangement settings i.e arrange as per my conventions.

Now I am close the vs2010 and next day I open the vs2010 then my setting lost and this things happen some time not always. i.e. some times saved and some times not saved.

e.g. I create macros, I create new toolbar and arrange my macro on my new toolbar and rename the display name of the macro.

Now I close vs2010 normally and reopen then I lost the my renamed macro it set the original name.

enter image description here

After reopen the visual studio I get this:

enter image description here

share|improve this question

migrated from stackoverflow.com Nov 13 '11 at 6:00

This question came from our site for professional and enthusiast programmers.

any one can help me please......... –  Rikin Patel Nov 18 '11 at 9:23

3 Answers 3

In those situations when the settings weren't saved, did you happen to run multiple instances of Visual Studio? If you start multiple Visual Studios and then close them, the Visual Studio which was closed the last will override all the setting changes made through the other instances.

If that is not the case, maybe you could try moving the configuration file to some other location in the hard drive. You can do this through Tools - Options - Environment - Import and Export Settings. Visual Studio Settings

share|improve this answer
thanks your reply.......... i will try your solution... and i never open multiple instance of visual studio... –  Patel Rikin Nov 12 '11 at 7:06
i used your solution but problem as it is.... –  Patel Rikin Nov 12 '11 at 7:50
Step to follow to reproduce the defect..... 1.Choose Customize from the Tools menu. 2.Choose the Commands tab. 3.Click the Toolbar radio button and select the target toolbar from the drop down list. 4.Click the Add Command… button. 5.Select Macros in the Categories list. 6.Select the desired macro from the Commands list, and then click OK. 7.Click Modify Selection and rename the macros’ name; 8.Now close the Vs. & open the vs 9.now again follow the above step 1 to 6. 10.Now close the Vs. and open the vs 11.now my rename macro lost and get the name like Macro.ProjName.ModuleName.MacroName –  Rikin Patel Nov 16 '11 at 6:51

I've had the same issue begin after copying/moving "My Documents" folder to another area. This and a ton of other crazy VisualStudio oddities, such as:

  • breakpoints and window states not being saved for various projects
  • "My Macros" project not found

It seems like buried inside VS's own code are a few hard-coded references to ..\My Documents. All these problems began for me immediately after using a different document location besides My Documents.

I know this is not an "answer" but may at least help explain what might be happening.

share|improve this answer

I managed to force VS to use my custom names by manually editing .vssettings file. When you add a macro to a toolbar and assign a custom name to it, there should be two entries for it in the config file:

<add ...>Macros.Foo.Bar</add> 


<modify Name="Custom button name" ...>Macros.Foo.Bar</modify>

The modify part was missing for some of my macros. Adding them manually fixed the problem (although weirdly it didn't work the first time - restarting VS removed the modify sections and brought back the old names, which I corrected again, and then VS finally accepted them).

share|improve this answer

Your Answer


