Document tabular layout and apply presentation nitpicks - #230
Merged
Conversation
added 5 commits
July 25, 2026 17:29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
switchcases), blank-line vertical rhythm, and happy-path-first control flow indocs/ezycad_code_style.md.gui_settings.cppandshp_cross_section.cpp(local// clang-format off/onaround tables only), plus light blank-line cleanup in nearby shape/sketch files.Closes #229
Test plan
docs/ezycad_code_style.mdTabular layout / Vertical rhythm / Control flow polarity sections.gui_settings.cppandshp_cross_section.cppkeep clang-format off/on tight to tables (not file-wide).Notes
Trailcode/nitpick).Note
Low Risk
Mostly documentation and formatting; the Defaults-button and cross-section message refactors are equivalent control flow but worth a quick sanity check in Settings and cross-section clip UX.
Overview
docs/ezycad_code_style.mdadds guidance for hand-aligned tabular blocks (JSON keys, assignments, one-lineswitchcases) with tight// clang-format off/on, plus vertical rhythm (blank lines around ImGui chains, lambdas, returns) and happy-path-firstif/else.gui_settings.cppandshp_cross_section.cppare the main code updates: column-aligned settings JSON builders/parsers and compactswitchtables; many blank lines beforeImGui::SameLine/ help tooltips and in the Settings UI. Smaller touch-ups inshp_create,shp_move,shp_rotate, fuse/cut/extrude,skt.cpp, etc. (spacing, polarity).shp_cross_section.hdrops an unused#include <cstddef>.The Settings Defaults button is refactored to
if (!content.empty()) { … } else show_message(...)(same outcomes). Clip-message and similar branches use success-first ordering; logic is unchanged per the PR intent.Reviewed by Cursor Bugbot for commit f4a1900. Bugbot is set up for automated code reviews on this repo. Configure here.