Visual Studio 2012: different color themes for different projects

回眸只為那壹抹淺笑 提交于 2019-12-20 11:14:37

问题


I have two Visual Studio instances with two opened "the same" projects. The difference is the projects are from different branches. Is there a way to make Visual Studio instances' appearance different from each other depends on project? There are plenty posts about Color Theme Editor extension, but it changes theme for all instances.


回答1:


Have you tried VSCommands extension from Visual Studio Gallerty ? It has feature called Solution Badges which may help you.




回答2:


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.




回答3:


I wanted to share an extension that did the trick for me. I tried this in VS2015.

The extension name is: SolutionColor

All I wanted was some visual distinction between my Main and Dev branch when both are opened at a same time. With this extension I could set the title of VS to a specific color and that was plenty for me!



来源:https://stackoverflow.com/questions/15609817/visual-studio-2012-different-color-themes-for-different-projects

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