Question

This is a very petty question that I'm only asking while compiling... ;)

For some reason my VS 2008 IDE doesn't remember my window preferences when I close & reopen - it resets the window widths, locations, appearances etc.

Where's the secret switch so that my IDE stays looking the way I want it?

Was it helpful?

Solution

Try resetting the Visual Studio

Tools->Import and Export Settings->Reset All Settings

Or

devenv.exe /resetsettings

OTHER TIPS

The window positions are stored in the following file:

%APPDATA%\Application Data\Microsoft\VisualStudio\9.0\windows.prf

I'm guessing that you don't have write access to this file, or something.

Anyway if you can somehow delete this file, it will regenerate it when you next start up your VS, with the windows in their default positions.

Do you have more than one instance of VS 2008 open? The settings of the last closed instance will overwrite the ones saved before.

Does the initial VS screen come up, asking for an "environment" type? What operating system do you run VS on? More details would probably help to provide some hints...

This happened to me after installing certain plugins. Maybe try to disable your plugins and see if it still happens?

Apart from that, VS itself did not cause any trouble in this aspect for me. Of course, you have to exit VS in the intended way and let it have enough time to save it's settings. Crashing or killing VS in some way naturally prevent this, but I'm sure you knew that already.

Are the symptoms always visible, or is it rather randomly?

Update

Are only window settings affected, and other settings can still be changed without problem? Are you sure you still have write access where needed? Does it work if you switch over to a different user account (with admin privileges)?

I just had this very problem, and more or less followed demoncodes advice. Went to

%AppData\Roaming\Microsoft\VisualStudio\9.0Exp\UserSettings

and removed the file windows.prf and backup_windows.prf (made a copy of it first of course.) Seems to have fixed my problems at least.

There is none. Loosing windows size an position has always been an illness of Windows. VS on its own is not free from it.

There is more: There are settings & preferences in VS, and you can export them for future use. The options for export miss some settings. There has been two years already, they haven't fixed it still.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top