如何真正重置 Visual Studio 2012 中的每个设置? [英] How do I truly reset every setting in Visual Studio 2012?

查看:21
本文介绍了如何真正重置 Visual Studio 2012 中的每个设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试重置 Visual Studio 中的每一个设置,因为我已经完全丢失了所有 IntelliSense.我尝试了工具 -> 导入/导出设置 -> 重置,但这并没有清除所有设置.我知道不是因为颜色主题没有重置,我仍然没有智能感知.除了卸载和删除包括注册表在内的所有程序痕迹之外,还有其他方法可以将每个设置重置为出厂默认设置吗?

I am trying to reset every single setting inside Visual Studio as I have completely lost all IntelliSense. I tried the Tools -> Import/Export settings -> Reset, but that is not clearing all the settings. I know it is not since the color theme was not reset, and I still do not have IntelliSense. Short of uninstalling and deleting every trace of the program including the registry, is there another way to reset every single setting to the factory default?

推荐答案

Visual Studio 有多个标志来重置各种设置:

Visual Studio has multiple flags to reset various settings:

  • /ResetUserData - (AFAICT) 删除所有用户设置并让您重新设置.这将使您再次获得初始设置提示、清除您最近的项目历史记录等.
  • /ResetSettings - 恢复 IDE 的默认设置,可选择重置为指定的 VSSettings 文件.
  • /ResetSkipPkgs - 清除添加到 VSPackages 的所有 SkipLoading 标签.
  • /ResetAddin - 删除与指定加载项关联的命令和命令 UI.
  • /ResetUserData - (AFAICT) Removes all user settings and makes you set them again. This will get you the initial prompt for settings again, clear your recent project history, etc.
  • /ResetSettings - Restores the IDE's default settings, optionally resets to the specified VSSettings file.
  • /ResetSkipPkgs - Clears all SkipLoading tags added to VSPackages.
  • /ResetAddin - Removes commands and command UI associated with the specified Add-in.

最后三个在运行 devenv.exe/? 时出现.第一个似乎没有记录/不受支持/大锤子.从这里:

The last three show up when running devenv.exe /?. The first one seems to be undocumented/unsupported/the big hammer. From here:

免责声明:如果您使用此开关,您将丢失所有环境设置和自定义.正是因为这个原因,这个开关没有得到官方支持,微软也没有向公众宣传这个开关(如果你在命令提示符下输入 devenv.exe/? 你不会看到这个开关).如果您遇到环境问题,您应该只将此开关用作最后的手段,并确保在使用此开关之前通过导出它们来备份您的环境设置.

Disclaimer: you will lose all your environment settings and customizations if you use this switch. It is for this reason that this switch is not officially supported and Microsoft does not advertise this switch to the public (you won't see this switch if you type devenv.exe /? in the command prompt). You should only use this switch as the last resort if you are experiencing an environment problem, and make sure you back up your environment settings by exporting them before using this switch.

这篇关于如何真正重置 Visual Studio 2012 中的每个设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆