public void SaveSettings() { Settings.Default.TrackActiveItem = chTrackActiveItem.Checked; Settings.Default.Extensions = ReadListOfExtensionsFromTextBoxText(edExtensions.Text); Settings.Default.ScriptStripEnabled = chScriptStripEnabled.Checked; Settings.Default.ScriptStripExtensions = ReadListOfExtensionsFromTextBoxText(edScriptStripEtensions.Text); Settings.Default.TreeFont = btnSelectTreeFont.Font; Settings.Default.taggedFunction2Color = colorPicker2.SelectedColor; Settings.Default.taggedFunction3Color = colorPicker3.SelectedColor; Settings.Default.taggedFunction4Color = colorPicker4.SelectedColor; Settings.Default.taggedFunction5Color = colorPicker5.SelectedColor; Settings.Default.taggedFunction6Color = colorPicker6.SelectedColor; Settings.Default.MaxParametersLength = Convert.ToInt32(numericUpDownMaxParametersLength.Value); Settings.Default.MaxParametersLengthInFunctionChain = Convert.ToInt32(numericUpDownMaxParametersLengthInFunctionChain.Value); Settings.Default.SendStatistics = chSendStatistics.Checked; if (Settings.Default.SendStatistics) { //If user checks this item once - then politic are approved. Settings.Default.SendStatisticsPolitic = "Approved"; } Settings.Default.FixAspNetTags = chFixAspNet.Checked; Settings.Default.FixAspNetTagsExtensions = ReadListOfExtensionsFromTextBoxText(edFixAspNetExtensions.Text); Settings.Default.FixRazorSyntax = chFixRazor.Checked; Settings.Default.FixRazorSyntaxExtensions = ReadListOfExtensionsFromTextBoxText(edFixRazorExtensions.Text); Settings.Default.ToDoKeywords = new System.Collections.Specialized.StringCollection(); Settings.Default.ToDoKeywords.AddRange(edToDoKeyWords.Text.Split(new[] { ',', ';' }).Select(p => p.Trim()).ToArray()); Settings.Default.ShowErrorsNotificationOnTopOfEditor = chShowErrorNotificationOnTopOfTheEditor.Checked; Settings.Default.ThemeSettingsSerialized = _themeProvider.Serialize(); Settings.Default.Save(); }