OK I understand I must create a folder “data” at the same level as “src”. So I click the project name, it folds and the new whatever icons vanish. Of course I can easily create the folder using Windows file explorer but…why?
Well I have sorted it. My problem was that .src was highlighted. If I clicked “add folder” next to TX, it added one under .src (as might be expected), attempting to solve this by selecting TX, as I would whilst using Windows file explorer, did not work. Selecting, say, platformio.ini then adding a folder added a folder under TX.
Seems slightly odd to me, but thank you for your time and help.
As you mentioned, left clicking anywhere on any folder will in the first instance either fold or unfold it… so if it folds up, another click will unfold it. But, on the first click it is selected, so you can still right click and do ‘new folder’ at that point. And handily, it will auto unfold when need to type the name, so there is no need to click the folder again to unfold it.
Yes, it is a bit odd that clicking the line also controls the folding arrow, I’m sure there’s an option hidden somewhere in the bowels of VSCode’s settings if it bugs you too much
Thank you for your reply. In fact my setup does not behave as you describe…and so it bugs me even more. However I do tend to neglect that the basic behaviour of the system is due to VSC not platformio at all.
I tend to think of VSC/PIO as an IDE like Arduino where Arduino is in control and the editor merely a part (whether internal or external), whereas here PIO is an extension of VSC - which is not to belittle PIO.
My next step is of course to use TX/data and upload it to a SPIFFS. I have done this many times within Arduino but no doubt I will stumble over some trivial step!