To restructure all elements in pxCode, follow these steps:
- Right-click "root": Locate the "root" at the top of the left panel.
- Select "Ungroup > Flatten All." From the context menu, choose the "Ungroup" option, then select "Flatten All".
This will restructure all the elements of your project.