-
Notifications
You must be signed in to change notification settings - Fork 236
change upload sketch #807
Comments
I also use workspaces with multiple subdirectories containing sketches and did not find a way to change the main sketch either. If you delete "sketch" in arduino.json and try to verify or upload a sketch then the extension lets you select it from a list. As a workaround I just wrote a task to set the value of "sketch" to the currently open file in the editor. |
I have the same issue. I cannot change sketch when changing to another .ino file. |
Same |
Same - this would be a nice feature to have. Perhaps an action like |
+1 |
Good idea re: workaround using task! Care to share the details? |
Sure. It's nothing fancy just a Python script overwriting arduino.json: The same can surely be accomplished with a couple of built-in command line utilities, maybe using jq or some other command line json processor. It was easier for me with Python. |
Thanks, this worked well. I had to change it to:
to get it to work in Windows. Also, although it changes, the status bar the bottom of VS Code doesn't reflect the change. I'm not sure how to trigger a refresh there. |
PR #1128 should cover this |
hoepfully its my lack of reading.
i am trying to change arduino.sketch to a different one in the workspace.
aside from manually changing
"sketch": "calib\\calib.ino",
i cant find a way.
The text was updated successfully, but these errors were encountered: