Check out example codes for "arduino vscode upload choosing sketch". It will help you in understanding the concepts better.

Code Example 1

Down at the bottom, on the right
you'll see the Arduino status bar. There you'll find your board,
your programmer, your port... and the .ino file that you're compiling.
Click there, change the name to the sketch you want to compile and done!

Learn ReactJs, React Native from akashmittal.com