private void InitializeSettingsFile() { // On first launch, populate the global settings file // before loading any solution settings. if (!File.Exists(locator.UserSettingsFile)) { logger.Log("Creating user settings file to store current global settings"); persister.CreateSettingsFile(locator.UserSettingsFile, "Rebracer User Settings File", "This file contains your global Visual Studio settings.", "Rebracer uses this file to restore your settings after", "closing a solution that specifies its own settings.", "This file will be automatically updated by Rebracer as", "you change settings in Visual Studio" ); } // When VS is launched, wait until we know // whether the used opened a solution, and // activate the solution or global file. persister.ActivateSettingsFile(locator.GetActiveFile(dte.Solution)); }