Batch script to setup environmental variables for Visual Studio compiler regardless of version1 without having to use the infamous Developer Console
Disclaimer: This script can be rewritten to be 0.05ms faster ⚡. It has some unnecesary variable declarations to be more noob friendly.
::Inside cmd.exe
> faster-vcvars.bat 64
Change 64 to 32 if you need to compile to x86
In tasks.json
1. Until 2030
PS: Batch script is fun, you should try it! 🤙