Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Developer Command Prompt for Visual Studio to Windows Terminal?

How do I add the Visual Studio Developer's Command Prompt to the list of Windows Terminal consoles?

enter image description here

like image 310
Wallace Kelly Avatar asked Sep 13 '19 14:09

Wallace Kelly


People also ask

How do I install the developer command prompt?

Start in Visual StudioOn the menu bar, select Tools > Command Line > Developer Command Prompt or Developer PowerShell.


2 Answers

Select Settings, which will open a JSON file.

Paste the following to the array of profiles in the JSON, changing 2019 to 2017 and Professional to Community to match your install.

, {     "guid" : "{1748ecca-abdd-4aa4-bcc4-9fca0d045be5}",     "name" : "VS cmd",     "commandline" : "cmd.exe /k \"%PROGRAMFILES(X86)%\\Microsoft Visual Studio\\2019\\Professional\\Common7\\Tools\\VsDevCmd.bat\"",     "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",     "hidden": false } 

enter image description here

like image 131
Wallace Kelly Avatar answered Sep 18 '22 14:09

Wallace Kelly


The answer from Wallace Kelly is great, but the settings below may be a useful copy/paste for others who want Visual Studio icons, both x86 and x64 and a less DOS-like font.

As with Wallace's answer, adjust "2019" and "Professional", e.g. for 2017/Community, as needed.

enter image description here

{   "guid": "{9a3a9308-d6f8-4b1d-896c-a27c59c28be3}",   "name": "VS2019 x86",   "commandline": "cmd.exe /k cd c:/dev/mc-hardware-svc/out/vs-x86-Debug && \"C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Auxiliary/Build/vcvars32.bat\"",   "fontFace": "Consolas",   "fontSize": 10,   "icon" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/Assets/VisualStudio.70x70.contrast-black_scale-80.png",   "hidden": false }, {   "guid": "{ceec68f2-0ef7-48f0-84db-4693612532cd}",   "name": "VS2019 x64",   "commandline": "cmd.exe /k \"C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/VC/Auxiliary/Build/vcvars64.bat\"",   "icon" : "C:/Program Files (x86)/Microsoft Visual Studio/2019/Professional/Common7/IDE/Assets/VisualStudio.70x70.contrast-black_scale-80.png",   "hidden": false }, 
like image 40
Andrew E Avatar answered Sep 20 '22 14:09

Andrew E