注意settings.json應該是類似於這樣的。"defaultProfile"字段在"globals"上方。原因是[1]
In preparation for v1.0, we have removed some previously deprecated settings. We know this will likely impact your workflows, but we are hoping this is a one-time event.“Globals” namespace
The Terminal no longer supports the globals property in the JSON file. If you have settings inside the globals object, they will be ignored. To fix this, remove the globals object and move your global settings into the root of the JSON file.
調整 defaultProfile 為bash配置對應的 guid.
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile" : "{1c4de342-38b7-51cf-b940-2309a097f589}",
"globals" :
{
"alwaysShowTabs" : true,
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
"command" : "closeTab",
"keys" :
[
"ctrl+w"
具體配置文件參考博文Windows Terminal下配置Git Bash中文亂碼 - lingr7 - 博客園中的前置操作的部分
參考(兩篇合起來看):
Windows Terminal 添加 git-bash - taadis - 博客園
Windows Terminal 調整默認終端 - taadis - 博客園
Windows Terminal gets updated to v0.11 - MSPoweruser ↩︎
