Here’s the code you need to add to settings.json in VS Code in order to be able to use the Developer Command Prompt in Windows 10…
{
"terminal.integrated.shell.windows": "cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/k", "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\Common7\\Tools\\VsDevCmd.bat"
]
}
You access settings as follows…
- File > Preferences > Settings
- Search settings for “shell”
- Choose “Edit in settings.json”