I would want to change the code of the ino file that is created when I execute the “Create new project” command.
Where is the file that I should modify?
I would want to change the code of the ino file that is created when I execute the “Create new project” command.
Where is the file that I should modify?
You open the file in workbench and edit it under the src folder - I am not sure if I understand your question?
I want to change the default code of the ino file for every new proyect.
There should be a file where the VSC gets the code for the new ino file created, I want to edit it.
Now is:
/*
* Project test_1881
* Description:
* Author:
* Date:
*/
//setup() runs once, when the device is first turned on.
void setup() {
//Put ...
}
//loop() runs over again...
void loop(){
//The core of ...
}
Unfortunately this is difficult to change.
Particle Workbench doesn’t create the project template; it calls the particle CLI to create the project template.
And the particle CLI doesn’t contain the template, either. It’s in the particle-commands repository:
So basically you’d need to build a modified CLI with a modified particle-commands library.