To restructure all elements in pxCode, follow these steps:

  1. Right-click "root": Locate the "root" at the top of the left panel.
  2. 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.