Repository: godotengine/godot
File: editor/editor_node.cpp (C++)

Code before:
	memnew(InspectorDock(editor_data));
	editor_dock_manager->add_dock(InspectorDock::get_singleton());

	memnew(SignalsDock);
	editor_dock_manager->add_dock(SignalsDock::get_singleton());

	memnew(GroupsDock);
	editor_dock_manager->add_dock(GroupsDock::get_singleton());

	history_dock = memnew(HistoryDock);
	editor_dock_manager->add_dock(history_dock);

	// Add some offsets to make LEFT_R and RIGHT_L docks wider than minsize.
	const int dock_hsize = 280;
	// By default there is only 3 visible, so set 2 split offsets for them.
	const int dock_hsize_scaled = dock_hsize * EDSCALE;
	main_hsplit->set_split_offsets({ dock_hsize_scaled, -dock_hsize_scaled });

	// Define corresponding default layout.

	const String docks_section = "docks";
	default_layout.instantiate();
	// Dock numbers are based on DockSlot enum value + 1.
	default_layout->set_value(docks_section, "dock_3", vformat("%s,%s", SceneTreeDock::get_singleton()->get_effective_layout_key(), ImportDock::get_singleton()->get_effective_layout_key()));
	default_layout->set_value(docks_section, "dock_4", vformat("%s,%s", filesystem_dock->get_effective_layout_key(), history_dock->get_effective_layout_key()));
	default_layout->set_value(docks_section, "dock_5", vformat("%s,%s,%s", InspectorDock::get_singleton()->get_effective_layout_key(), SignalsDock::get_singleton()->get_effective_layout_key(), GroupsDock::get_singleton()->get_effective_layout_key()));

	int hsplits[] = { 0, dock_hsize, -dock_hsize, 0 };
	for (int i = 0; i < (int)std_size(hsplits); i++) {
		default_layout->set_value(docks_section, "dock_hsplit_" + itos(i + 1), hsplits[i]);
	}
	for (int i = 0; i < editor_dock_manager->get_vsplit_count(); i++) {
		default_layout->set_value(docks_section, "dock_split_" + itos(i + 1), 0);
	}

	{
		Dictionary offsets;
		offsets["Audio"] = -450;
		default_layout->set_value(EDITOR_NODE_CONFIG_SECTION, "bottom_panel_offsets", offsets);
	}

	_update_layouts_menu();

	// Bottom panels.

	bottom_panel = memnew(EditorBottomPanel);
	editor_dock_manager->register_dock_slot(bottom_panel);
	center_split->add_child(bottom_panel);
	center_split->set_dragger_visibility(SplitContainer::DRAGGER_HIDDEN);

	log = memnew(EditorLog);

Review comment (suggestion):
Suggestion: Since these parameters are pretty dense and nested, it might improve readability to assign them to well-named const variables right before the call. That way the set_value / vformat lines are easier to scan.

```suggestion
	const String scene_tree_key = SceneTreeDock::get_singleton()->get_effective_layout_key();
	const String import_key = ImportDock::get_singleton()->get_effective_layout_key();
	default_layout->set_value(docks_section, "dock_3", vformat("%s,%s", scene_tree_key, import_key));
	
	const String filesystem_key = filesystem_dock->get_effective_layout_key();
	const String history_key = history_dock->get_effective_layout_key();
	default_layout->set_value(docks_section, "dock_4", vformat("%s,%s", filesystem_key, history_key));
	
	const String inspector_key = InspectorDock::get_singleton()->get_effective_layout_key();
	const String signals_key = SignalsDock::get_singleton()->get_effective_layout_key();
	const String groups_key = GroupsDock::get_singleton()->get_effective_layout_key();
	default_layout->set_value(docks_section, "dock_5", vformat("%s,%s,%s", inspector_key, signals_key, groups_key));
```

Code after:
	memnew(InspectorDock(editor_data));
	editor_dock_manager->add_dock(InspectorDock::get_singleton());

	memnew(SignalsDock);
	editor_dock_manager->add_dock(SignalsDock::get_singleton());

	memnew(GroupsDock);
	editor_dock_manager->add_dock(GroupsDock::get_singleton());

	history_dock = memnew(HistoryDock);
	editor_dock_manager->add_dock(history_dock);

	// Add some offsets to make LEFT_R and RIGHT_L docks wider than minsize.
	const int dock_hsize = 280;
	// By default there is only 3 visible, so set 2 split offsets for them.
	const int dock_hsize_scaled = dock_hsize * EDSCALE;
	main_hsplit->set_split_offsets({ dock_hsize_scaled, -dock_hsize_scaled });

	// Define corresponding default layout.

	const String docks_section = "docks";
	default_layout.instantiate();
	// Dock numbers are based on DockSlot enum value + 1.
	{
		const String scene_key = SceneTreeDock::get_singleton()->get_effective_layout_key();
		const String import_key = ImportDock::get_singleton()->get_effective_layout_key();
		default_layout->set_value(docks_section, "dock_3", vformat("%s,%s", scene_key, import_key));
	}
	{
		const String filesystem_key = filesystem_dock->get_effective_layout_key();
		const String history_key = history_dock->get_effective_layout_key();
		default_layout->set_value(docks_section, "dock_4", vformat("%s,%s", filesystem_key, history_key));
	}
	{
		const String inspector_key = InspectorDock::get_singleton()->get_effective_layout_key();
		const String signals_key = SignalsDock::get_singleton()->get_effective_layout_key();
		const String groups_key = GroupsDock::get_singleton()->get_effective_layout_key();
		default_layout->set_value(docks_section, "dock_5", vformat("%s,%s,%s", inspector_key, signals_key, groups_key));
	}

	int hsplits[] = { 0, dock_hsize, -dock_hsize, 0 };
	for (int i = 0; i < (int)std_size(hsplits); i++) {
		default_layout->set_value(docks_section, "dock_hsplit_" + itos(i + 1), hsplits[i]);
	}
	for (int i = 0; i < editor_dock_manager->get_vsplit_count(); i++) {
		default_layout->set_value(docks_section, "dock_split_" + itos(i + 1), 0);
	}

	{
		Dictionary offsets;
		offsets["Audio"] = -450;