How to automatically change to default shell

Visual Studio Code a.k.a VSCode, allows local and remote development. I am a Windows 10 user but I love developing in Linux using WSL.

When I changed to use WSL for my remote development, it was not switching shell automatically to bash.

After digging more, I have found %userprofile%/AppData/Roming/Code/User/settings.josn file which I modified like below. So when I connect to WSL/SSH Remote, bash is set automatically as default shell and powershell in Windows.

"ubntu": "linux"
"editor.tabSize": 2,
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"remote.WSL.fileWatcher.polling": true,
"terminal.external.windowsExec": "C:\\Windows\\sysnative\\wsl.exe",
"": "bash",
"": "powershell.exe"

Hopefully the above will help you too.