Visual Studio 2008,管理设置的简便方法?

时间:2022-07-28 01:30:54

Is there a plugin or some hidden feature in Visual Studio 2008 that allows for easy swapping between user settings files? Using the import/export wizard all the time gets a little bit tedious. It would be nice if there was a menu item called "Profiles" that you could set up to contain different profiles with different settings and change them on the fly.

Visual Studio 2008中是否有插件或隐藏功能,允许在用户设置文件之间轻松交换?使用导入/导出向导总是有点单调乏味。如果有一个名为“配置文件”的菜单项可以设置为包含具有不同设置的不同配置文件并在运行中更改它们,那就太好了。

1 个解决方案

#1


There is may be something else available but I have a neat way to achieve what you want.

可能还有其他可用的东西,但我有一个简洁的方法来实现你想要的。

In VS, Tools > External Tools (w.r.t. VS2005). Here you can write your commands and tools to be executed, using menu. Now, what you can do here is swap the setting files and restart VS instance. You can have as many as menus for profile 1...n

在VS中,工具>外部工具(w.r.t. VS2005)。在这里,您可以使用菜单编写要执行的命令和工具。现在,您可以在此处交换设置文件并重新启动VS实例。您可以拥有与配置文件1 ... n一样多的菜单

Update: Example1
Title: Set Profile 1
Command: %windir%\system32\replace.exe
Arguments: "C:\Documents and Settings\\My Documents\Visual Studio 2005\Settings\CurrentSettings.vssettings" "D:\Profile1\CurrentSettings.vssettings"

更新:示例1标题:设置配置文件1命令:%windir%\ system32 \ replace.exe参数:“C:\ Documents and Settings \\ My Documents \ Visual Studio 2005 \ Settings \ CurrentSettings.vssettings”“D:\ Profile1 \ CurrentSettings .vssettings”

This should replace the settings with that of Profile 1. Also, add command to relaunch Devenv.

这应该用Profile 1替换设置。另外,添加命令以重新启动Devenv。

#1


There is may be something else available but I have a neat way to achieve what you want.

可能还有其他可用的东西,但我有一个简洁的方法来实现你想要的。

In VS, Tools > External Tools (w.r.t. VS2005). Here you can write your commands and tools to be executed, using menu. Now, what you can do here is swap the setting files and restart VS instance. You can have as many as menus for profile 1...n

在VS中,工具>外部工具(w.r.t. VS2005)。在这里,您可以使用菜单编写要执行的命令和工具。现在,您可以在此处交换设置文件并重新启动VS实例。您可以拥有与配置文件1 ... n一样多的菜单

Update: Example1
Title: Set Profile 1
Command: %windir%\system32\replace.exe
Arguments: "C:\Documents and Settings\\My Documents\Visual Studio 2005\Settings\CurrentSettings.vssettings" "D:\Profile1\CurrentSettings.vssettings"

更新:示例1标题:设置配置文件1命令:%windir%\ system32 \ replace.exe参数:“C:\ Documents and Settings \\ My Documents \ Visual Studio 2005 \ Settings \ CurrentSettings.vssettings”“D:\ Profile1 \ CurrentSettings .vssettings”

This should replace the settings with that of Profile 1. Also, add command to relaunch Devenv.

这应该用Profile 1替换设置。另外,添加命令以重新启动Devenv。