Shaul Behr
Shaul Behr

Reputation: 38023

Why doesn't VS 2008 IDE remember my preferences?

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?

Upvotes: 4

Views: 1074

Answers (7)

Ranjith
Ranjith

Reputation: 794

Try resetting the Visual Studio

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

Or

devenv.exe /resetsettings

Upvotes: 3

Skurmedel
Skurmedel

Reputation: 22159

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.

Upvotes: 0

demoncodemonkey
demoncodemonkey

Reputation: 11957

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.

Upvotes: 5

mafu
mafu

Reputation: 32680

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)?

Upvotes: 0

Iwhp
Iwhp

Reputation:

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...

Upvotes: 1

stevehipwell
stevehipwell

Reputation: 57508

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

Upvotes: 1

User
User

Reputation: 30975

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.

Upvotes: -2

Related Questions