Created
January 3, 2016 14:33
-
-
Save JohannesRudolph/52073f4ac6dc893d9548 to your computer and use it in GitHub Desktop.
MigrateVSColorSchemeTo2015
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This key-value pair should be placed at the end, otherwise the subsequent replacements doesn't work.