Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I make older color schemes compatible with Visual Studio 2015?

In VS 2013, I use the Selenitic color scheme. When importing it in VS 2015, I see some differences.

VS 2013:
screenshot of Visual Studio 2013

VS 2015:
screenshot of Visual Studio 2015

There are some differences (interface color, XML comment color), the thing that annoys me the most is that the XML comments in 2013 are nicely colored and in 2015 it is all the same color. I also noticed that xml comments are using a different color. I like the syntax highlighting in 2013, the XML comments are more subtle there. Is there a way I can fix this?

like image 997
slayerIQ Avatar asked Jul 29 '15 11:07

slayerIQ


People also ask

How do I change the color scheme in Visual Studio?

Change the color themeOn the menu bar, choose Tools > Options. In the options list, choose Environment > General. In the Color theme list, choose either the default Dark theme, the Light theme, the Blue theme, or the Blue (Extra Contrast) theme.

How do I get more themes for Visual Studio?

Color Themes from the Marketplace There are several out-of-the-box color themes in VS Code for you to try. Many more themes have been uploaded to the VS Code Extension Marketplace by the community. If you find one you want to use, install it and restart VS Code and the new theme will be available.

Why does my Visual Studio look different?

The Visual Studio interface will look different depending on what type of project you are working on and the language(s) you're using.

How do I create a custom color in Visual Studio?

Within the Visual Studio Designer, under the properties window you are able to select the ForeColor , BackColor etc using color picker. When you want to pick a color, a color picker comes up with the tabs 'Custom, Web, System'.


2 Answers

I found that some names of the elements in a .vssetting file have been changed. So, you need to rename them to the new ones to import it correctly. Here's the list of changed names which I found so far.

Old Name                                     ->  New Name
---------------------------------------------------------------------------------------------
Brace Matching (Rectangle)                   ->  brace matching
String(C# @ Verbatim)                        ->  string - verbatim
User Types                                   ->  class name
User Types(Enums)                            ->  enum name
User Types(Interfaces)                       ->  interface name
User Types(Delegates)                        ->  delegate name
User Types(Value types)                      ->  struct name
Line Numbers                                 ->  Line Number
Razor Code                                   ->  RazorCode
XML Doc Comment                              ->  xml doc comment - text
XML Doc Tag                                  ->  xml doc comment - delimiter
                                                 xml doc comment - name
MarkerFormatDefinition/HighlightedReference  ->  MarkerFormatDefinition/HighlightedReference
                                                 MarkerFormatDefinition/HighlightedDefinition

I believe this is not all, but at least it includes the missing colors you showed.

like image 122
Takoa Avatar answered Oct 01 '22 13:10

Takoa


This doesn't specifically fix the import of a scheme, but the XML comment colors (in VS2015) can be manually changed

Assuming the following comment block

/// <summary>
/// Description
/// </summary>
/// <param name="test">Value</test>
/// <returns>Result</returns>

Go to Tools / Environment / Fonts and Colors:

There are a section of options all starting with "XML Doc Comments - ". Change each of these to change the corresponding part of the comment.

Delimiter:        /// < < /

Name:             summary, param, returns

Attribute Quotes: "

Attribute Name:   name

Text:             Description, Value, Result

I cannot find an option to independently color "test" above - it appears to be linked with "Identifier".

like image 35
peter_g Avatar answered Oct 01 '22 13:10

peter_g