{"id":238884,"date":"2022-08-04T08:00:25","date_gmt":"2022-08-04T15:00:25","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=238884"},"modified":"2022-10-04T08:15:21","modified_gmt":"2022-10-04T15:15:21","slug":"differentiating-visual-studio-instances","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/differentiating-visual-studio-instances\/","title":{"rendered":"Differentiating Visual Studio instances"},"content":{"rendered":"<p>When you have multiple instances of Visual Studio open at the same time, it can be tricky to tell them apart. Especially if you\u2019re working on different branches of the same solution, which makes them look almost identical. What if each instance could have a unique color so you could instantly tell them apart? Would you use it?<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/colors.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-238885\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/colors.png\" alt=\"Colors applied to Visual Studio\" width=\"600\" height=\"337\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/colors.png 600w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/colors-300x169.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=johnpapa.vscode-peacock\">Peacock<\/a> extension for Visual Studio Code does exactly that, and with 1.7 million installs it appears to be working great for lots of developers. A <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Per-SolutionFolder-Color-Theme\/608136?space=8&amp;q=solution+color&amp;ftype=idea\">feature request<\/a> on the Visual Studio Developer Community is gaining steam asking for the same feature be added to Visual Studio, so please <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Per-SolutionFolder-Color-Theme\/608136?space=8&amp;q=solution+color&amp;ftype=idea\">vote and comment<\/a> if you\u2019re interested.<\/p>\n<h2>An experiment<\/h2>\n<p>Due to the UI differences in Visual Studio Code, it may not be desirable to port Peacock as is to Visual Studio. Instead, we may need a different UI paradigm and colorization scheme. Let\u2019s experiment and keep iterating to find the best solution together.<\/p>\n<p>We\u2019re starting out with an extension to kick off the experiment. We call it <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=MadsKristensen.SolutionColors\">Solution Colors<\/a> and the first iteration puts a 3-pixel thick colored line above the status bar (see image above).<\/p>\n<h2>Getting started<\/h2>\n<p>After <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=MadsKristensen.SolutionColors\">installing the extension<\/a>, you are ready to start colorizing Visual Studio. The way it works is that you manually assign a color to a solution, by right-clicking the top tree node in Solution Explorer.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/context-menu.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-238886\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/context-menu.png\" alt=\"Solution\/Folder context menu\" width=\"434\" height=\"465\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/context-menu.png 434w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/context-menu-280x300.png 280w\" sizes=\"(max-width: 434px) 100vw, 434px\" \/><\/a><\/p>\n<p>Every time you open that solution, the extension applies the color automatically. Select <em>None<\/em> from the list to remove it again. It works for both solutions and for folder-based workspaces (CMake, etc.).<\/p>\n<p>You can adjust the thickness of the line from the <em>Tools -&gt; Options<\/em> dialog to suit your liking. Find it under <em>Environment -&gt; Fonts and Colors -&gt; Solution Colors<\/em>.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/options.png\"><img decoding=\"async\" class=\"alignnone size-full wp-image-238887\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/options.png\" alt=\"Options for Solution Colors\" width=\"742\" height=\"432\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/options.png 742w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2022\/08\/options-300x175.png 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/a><\/p>\n<p>Both built in and custom themes are not affected by this colorization.<\/p>\n<h2>Next steps<\/h2>\n<p>If this feature is interesting to you, please install the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=MadsKristensen.SolutionColors\">Solution Colors extensions<\/a> and take it for a ride. Make sure to share any ideas and bugs on the <a href=\"https:\/\/github.com\/madskristensen\/SolutionColors\/issues\">GitHub issue tracker<\/a>, and feel free to send pull requests too. The <a href=\"https:\/\/developercommunity.visualstudio.com\/t\/Per-SolutionFolder-Color-Theme\/608136?space=8&amp;q=solution+color&amp;ftype=idea\">feature request ticket<\/a> is a great place to share your comments and thoughts, so make sure to vote and comment there as well.<\/p>\n<p>Do you like the idea of community experiments like this one? Let us know in the comments below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you have multiple instances of Visual Studio open at the same time, it can be tricky to tell them apart. Especially if you\u2019re working on different branches of the same solution, which makes them look almost identical. What if each instance could have a unique color so you could instantly tell them apart? Would [&hellip;]<\/p>\n","protected":false},"author":642,"featured_media":238885,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1388,561,155],"tags":[6862,294],"class_list":["post-238884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-extensibility","category-open-source","category-visual-studio","tag-experiment","tag-extensions"],"acf":[],"blog_post_summary":"<p>When you have multiple instances of Visual Studio open at the same time, it can be tricky to tell them apart. Especially if you\u2019re working on different branches of the same solution, which makes them look almost identical. What if each instance could have a unique color so you could instantly tell them apart? Would [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/238884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/642"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=238884"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/238884\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/238885"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=238884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=238884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=238884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}