I would like to write a procedure for downloading and programming with M5stack-Core2 from VSCode.
Reference Link
procedure
Please Download VSCode, search for Arduino, and Install it.
Go to File>Preferences>Settings.
Enter this path in the Extensions>Arduino Configur>Adruino:Path.
C:\Program Files (x86)\Arduino
Search for IntelliSense eng.. > select Tag Parser from C_Cpp: Intelli Sense Engine.
With Ctrl+p, set the microcomputer to be programmed with Arduino Board Config.
Select your board.
In this tutorial, M5Stack-Core2 is used.
Set the port connected to the microcomputer.
Just compile and download it.