Skip to content

Instantly share code, notes, and snippets.

@JohannesRudolph
Created January 3, 2016 14:33
Show Gist options
  • Save JohannesRudolph/52073f4ac6dc893d9548 to your computer and use it in GitHub Desktop.
Save JohannesRudolph/52073f4ac6dc893d9548 to your computer and use it in GitHub Desktop.
MigrateVSColorSchemeTo2015
string settings = File.ReadAllText(@"C:\Users\johannes.rudolph\Documents\Visual Studio 2015\Settings\jrMonokai.vssettings");
var map = new Dictionary<string, string>()
{
{"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
};
var sb = new StringBuilder(settings);
foreach (var kvp in map)
sb.Replace(kvp.Key, kvp.Value);
File.WriteAllText(@"C:\Users\johannes.rudolph\Documents\Visual Studio 2015\Settings\jrMonokai.vs2015.vssettings", sb.ToString());
@zvirja
Copy link

zvirja commented Jan 19, 2016

{"User Types", "class name"},

This key-value pair should be placed at the end, otherwise the subsequent replacements doesn't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment