Why doesn't VS 2008 IDE remember my preferences?

限于喜欢 提交于 2019-12-22 07:59:48

问题


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?


回答1:


Try resetting the Visual Studio

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

Or

devenv.exe /resetsettings



回答2:


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.




回答3:


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




回答4:


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




回答5:


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




回答6:


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.




回答7:


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.



来源:https://stackoverflow.com/questions/1097070/why-doesnt-vs-2008-ide-remember-my-preferences

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!