Search code examples
visual-studio-codecmdwindows-terminal

Launch Windows Terminal from VSCode?


I'm trying to launch the new Windows Terminal through VSCode like I have with other terminal emulators.

Previously I've used the following setting in the VSCode JSON file settings.json to launch Cmder through VSCode with ctrl+C

"terminal.external.windowsExec": "C:\\Program Files\\cmder\\Cmder.exe",

However, trying the same with the directory of the Windows Terminal directory has been unsuccessful.

"terminal.external.windowsExec": "C:\\Program Files\\WindowsApps\\Microsoft.WindowsTerminal_1.0.1401.0_x64__8wekyb3d8bbwe\\WindowsTerminal.exe",

Solution

  • I thought that the executable was wt.exe, so if I'm correct, in your settings.json, you should be using:

    "terminal.external.windowsExec": "C:\\Users\\skillcap\\AppData\\Local\\Microsoft\\WindowsApps\\wt.exe",
    

    (remember to change the user name as required).

    As a side note, the executable should also have been added to your %PATH%, so you should be able to generally start it using just wt, (with an unmodified %PATHEXT% variable).