support icon indicating copy to clipboard operation
support copied to clipboard

Saving code and filesystem request

Open shadowjig opened this issue 3 months ago • 1 comments

The flexibility of saving code outside of the browser file storage is a limiting factor of the IDE. VS Code is overly complex for children to use. I understand the simplicity of keeping the code in the browser. But many teams now have multiple robots and have a need to share code across laptops/devices. I also understand that syncing files to Github or something similar is a huge ask and not what I'm advocating for in this request. I'm looking at making suggestions that support saving files to the local filesystem in this request.

I'd like to suggest the following......

Saving code: If I import a file from another folder into the pybricks IDE, I would expect that any changes to that file would be written back to the file and location I imported it from. Instead the copy of the code is kept in the browser and there's no way to get it out (of the browser) other than the export feature. Which is clumsy for kids to grasp and save their changes back to the filesystem. Can I make a request for a save button to save changes back to the place the file was imported? Also closing the file in the IDE should also do a similar save operation. CTRL-S keyboard shortcut would also be implied as an option to save the file.

File path setting in the IDE: Add a file path setting in the IDE. The intention here is to set the path to a location that contains my code. And when the IDE opens it will fetch all files in that path and list them in the file menu on the left. And any changes to those files will automatically be written back to the disk (not browser storage) upon closing the file or clicking a save button, or using CTRL-S.

I know there's been multiple requests to sync code to repositories and such. And I understand that that's a complex change. But the above represents something that seems more attainable in the short term and would go a long way to helping FLL coaches get some control around files that need to be shared across multiple devices for programming their robots.

shadowjig avatar Sep 29 '25 21:09 shadowjig