I have created a template folder for those who are struggling with getting devkitPro to work with VS Code. It will not only build from source automatically, but also run the .3dsx file in a 3DS emulator, which you have to link yourself in the launch.json file.
Hoping I can save people lots of...