static void CreateWindow() { CodeFormat window = (CodeFormat)EditorWindow.GetWindow(typeof(CodeFormat)); window.Init(); window.Show(); }