且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Visual Studio中导出/导入工具栏

更新时间:2022-12-31 10:58:46

我终于找到了解决方案.在Visual Studio中有一个已知错误,并且有提供了两种解决方法.第一种解决方法不适用,但第二种可行.

I have finally found the solution to this. There is a known bug in Visual Studio and there are two workarounds given. The first workaround does not apply, but the second worked.

要备份工具栏,请执行以下操作:

To Backup your toolbars:

将文件 CmdUI.PRF 从路径%AppData%\ Microsoft \ VisualStudio \ X.Y \ 1033 复制到与导出的.settings文件相同的目录中. 其中 X.Y可以是8.0、9.0、10.0或11.0 ,具体取决于您的Visual Studio版本(分别为2005、2008、2010和2012).

Copy the file CmdUI.PRF from the path %AppData%\Microsoft\VisualStudio\X.Y\1033 to the same directory as your exported .settings file. where X.Y is either of 8.0, 9.0, 10.0 or 11.0 depending on your visual studio version (2005, 2008, 2010 and 2012 respectively).

要还原工具栏,请执行以下操作:

To Restore your toolbars:

确保已关闭Visual Studio,然后将备份的文件复制回原始位置.

Make sure Visual Studio is closed and copy the backed up file back to the original location.