private static string ModifyProjectFile(string name, string content) { if (_preferences == null) { _preferences = ProjectSettings.GetProjectSettings <UserPreferences>(); } StringBuilder builder = new StringBuilder(content); if (_preferences.UseNamespace) { builder.Replace("<RootNamespace></RootNamespace>", string.Format("<RootNamespace>{0}</RootNamespace>", _preferences.RootNamespace)); } return(builder.ToString()); }
public static void ShowToolkitUserPreferences() { UserPreferences preferences = ProjectSettings.GetProjectSettings <UserPreferences>(); Selection.SetActiveObjectWithContext(preferences, null); }