Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the Visual Studio layout saved?

I am having problems with VS2008 moving the windows around and losing tabs when I close it and open again, or when I go from coding to debugging and back. (Yes, I know that it is supposed to save different layouts for coding and debugging). I have tried exporting my settings, but it informs me helpfully that

Your settings were exported, but there were some errors. Error 1: Some command bar settings were not exported correctly due to an internal error.

Importing them again gives a similar error, and doesn't solve the problem. Does anyone know where VS saves the layout info? Or how to reinitialise the layout, without changing all my other settings?

like image 535
Joel in Gö Avatar asked Apr 01 '09 11:04

Joel in Gö


People also ask

Where is the Visual Studio file located?

When you create a new project, Visual Studio saves it to its default location, %USERPROFILE%\source\repos. To change this location, go to Tools > Options > Projects and Solutions > Locations. For more information, see Options dialog box: Projects and Solutions > Locations.

How do I change the layout of Visual Studio?

It's easy to set your default layout: Arrange your windows the way you like, go to the Window menu in Visual Studio and pick Apply Window Layout > My Default. If you want you can setup several window layouts by picking Window > Save Window Layout. This choice gives you the option of assigning a name to your layout.

How do I add a layout in Visual Studio?

To create a new layout view in Visual Studio, right-click on the Shared folder -> select Add -> click on New Item... This will open the Add New Item popup, as shown below. In the Add New Item dialogue box, select MVC 5 Layout Page (Razor) template, and specify a layout view name as _myLayoutPage.

How do I save a layout in Vscode?

You can add settings by going to File > Preferences and adding them in the right pane, in "User Settings" if you want to keep them for all workspaces or in "Workspace Settings" for this workspace only.


1 Answers

Some of the layout information is stored in the registry for the current user.

HKCU:\Software\Microsoft\VisualStudio\9.0

If you're really having a lot of problems you can take the desparate step of deleting or renaming this key. Personally, I would rename it, start VS and see if that fixed my import export settings problem.

like image 83
JaredPar Avatar answered Nov 02 '22 23:11

JaredPar