25

我有两个带有两个打开的“相同”项目的 Visual Studio 实例。不同之处在于项目来自不同的分支。有没有办法让 Visual Studio 实例的外观因项目而异?有很多关于颜色主题编辑器扩展的帖子,但它会更改所有实例的主题。

4

3 回答 3

8

您是否尝试过Visual Studio Gallerty 的VSCommands扩展?它具有称为解决方案徽章的功能,可以帮助您。

解决方案徽章

于 2013-03-25T11:49:39.780 回答
6

One option is to launch visual studio from the command line (or custom shortcuts) with the /rootsuffix argument. This forces VS to create a fresh node in the registry for all your VS settings, and on subsequent runs, with the settings saved under the provided node.

For example, I have two enlistments on a single machine, and I can open two instances of VS as follows: d:\source\green> devenv /rootsuffix green d:\source\red> devenv /rootsuffix red

One downside of this option is you will have to reconfigure all your preferences (font/colors, document formatting, symbol settings, addons and extensions, etc.) I recommend launching the default VS instance and exporting all your preferences (tools > import and export settings) to an xml file so you can import them from each of your new devenv nodes. You'll still need to manually reconfigure some other things, mainly addons.

As for customizing VS theme colors for each rootsuffix, I recommend Visual Studio 2013 Color Theme Editor (https://visualstudiogallery.msdn.microsoft.com/9e08e5d3-6eb4-4e73-a045-6ea2a5cbdabe?SRC=VSIDE). As mentioned above, you'll need to install this once for each rootsuffix you create since extension information is stored on a per-rootsuffix basis in the registry.

于 2014-12-30T20:32:53.720 回答
5

我想分享一个对我有用的扩展。我在 VS2015 中试过这个。

扩展名是:SolutionColor

我想要的只是我的 Main 和 Dev 分支同时打开时的视觉区别。有了这个扩展,我可以将 VS 的标题设置为特定的颜色,这对我来说已经足够了!

于 2017-04-27T17:20:49.823 回答