Tyriar / vscode-windows-terminal

VS Code integration with Windows Terminal
https://marketplace.visualstudio.com/items?itemName=Tyriar.windows-terminal
MIT License
33 stars 8 forks source link

Set default profile in settings.json #32

Open moxwel opened 3 years ago

moxwel commented 3 years ago

Every time I click "Open Windows Terminal" while in WSL Remote, it opens Powershell.

It would be useful if the default profile to open in Windows Terminal were set in settings.json.

windowsTerminal.defaultProfile: "<GUID>",

This can be used to set different default profiles per workspace, or in WSL Remote.

zoredache commented 1 year ago

I think this would be really useful. I use the relatively new --cd option of wsl.exe on my default wt profile so I get dropped into my ~/Projects directory, where I keep 98% of the stuff I am working on.

Profile command line

wsl.exe -d Debian-Bullseye --cd ~/Projects

Apparently having this as part of my default profile completely breaks this extension. It would be really nice to setup another wt profile without the --cd argument and then set that as the default WSL profile the extension uses in my workspace or folder settings.