Start menu > "Developer Command Prompt for VS"
In that command prompt, enter "code ." (code space dot)
It will open up VS code, and running C++ code will work as expected.