microsoft / vscode-arduino

Visual Studio Code extension for Arduino
Other
1.17k stars 226 forks source link

[Feature Request] Ability to Upload and Verify while on any editor tab #1714

Open aleksey-sh opened 9 months ago

aleksey-sh commented 9 months ago

Please let me know if this is somehow already available or if there is a way to configure this.

I wonder if its possible to upload or verify while editing any of the source files without having to switch to .ino file. arduino.json already has a reference to the main sketch file. I do not see a reason why this should not be possible. Most of my projects consist of a single .ino file and many .h and .cpp files and usually I have 5-10 cpp and h files open at a time that I am working on. My ino file has only some basic startup and loop code that does not change much, if at all. Having to always switch between .ino file and .cpp files just to compile and upload is really annoying.

Below is screenshot of one of the projects image

I have seen other requests that talk about verify/upload buttons but it does not really resolve my pain. https://github.com/microsoft/vscode-arduino/issues/938 https://github.com/microsoft/vscode-arduino/issues/1476 https://github.com/microsoft/vscode-arduino/issues/1224

Anyone has any thoughts?

Thanks!