Windows Terminal “加载用户设置时遇到错误解决”
因为我对terminal一直比较期待,所以以前的版本里面就已经用了,正式版本发布之后一直有个错误提示,很不爽,想解决一下!
一打开就是如下的提示:
The “globals” property is deprecated - your settings might need updating. For more info, see this web page.
这个其实上面有个连接,我们点过去:
For more info,see this web page
这个一看比较明白,就是说配置其实在新老版本不一样,要我们改配置,不过可以看到最后的地方
意思是叫我们做好备份,干掉之后会重新生成,那我果断懒得备份,手起刀落删掉,不过要知道怎么找配置,一般app安装的程序默认会安装在用户路径下面,没有主设置过的话,比如我自己的电脑是Administrator用户,那么路径就是这个
bash C:\Users\Administrator\AppData\Local\Packages
下面就是各种安装的应用了:
我们根据名字找到具体的应用,那么下面就有配置文件,干掉即可:
bash C:\Users\Administrator\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState
干掉之后再启动就可以愉快玩耍了 ~
给我们终端配置样式
terminal一发布的时候是高大酷炫的,我们看这个配置文件也知道,里面其实就是做各种样式的,百度了一下,找了个比较不错的样式复制过来,贴上参考的连接 :Windows Terminal终端美化
我CSS样式比较弱,把样式写进去之后,还要找一张背景图片:
配置文件里面那个1.jps放到C盘改一下路径:
然后效果会立马生效,我们的terminal瞬间上了一个档次了,到这里来编译Spark了,美滋滋~~
考虑到估计很多同学也是偏后端的开发,我把这个配置文件贴出来,复制到自己本机稍加改动(直接替换)即可:
{ "$schema": "https://aka.ms/terminal-profiles-schema", "defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "copyOnSelect": false, "copyFormatting": false, "profiles": { "defaults": { // Put settings here that you want to apply to all profiles. }, "list": [ { "guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", "name": "Windows PowerShell", "commandline": "powershell.exe", "hidden": false }, { "background": "#000000", "guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", "name": "cmd", "commandline": "cmd.exe", "backgroundImage": "C://1.jpg", "colorScheme": "AdventureTime", "useAcrylic": false, "closeOnExit": true, "acrylicOpacity": 0.25, "cursorColor": "#FFFFFF", "fontFace": "Delugia Nerd Font", "hidden": false }, { "guid": "{c6eaf9f4-32a7-5fdc-b5cf-066e8a4b1e40}", "hidden": false, "name": "Ubuntu-18.04", "backgroundImage": "C://1.jpg", "source": "Windows.Terminal.Wsl", "useAcrylic": true, "antializsingMode": "aliased" }, { "guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", "hidden": false, "name": "Azure Cloud Shell", "source": "Windows.Terminal.Azure" } ] }, "schemes": [ { "name": "3024 Day", "black": "#090300", "red": "#db2d20", "green": "#01a252", "yellow": "#fded02", "blue": "#01a0e4", "purple": "#a16a94", "cyan": "#b5e4f4", "white": "#a5a2a2", "brightBlack": "#5c5855", "brightRed": "#e8bbd0", "brightGreen": "#3a3432", "brightYellow": "#4a4543", "brightBlue": "#807d7c", "brightPurple": "#d6d5d4", "brightCyan": "#cdab53", "brightWhite": "#f7f7f7", "background": "#f7f7f7", "foreground": "#4a4543" }, { "name": "AdventureTime", "black": "#050404", "red": "#bd0013", "green": "#4ab118", "yellow": "#e7741e", "blue": "#0f4ac6", "purple": "#665993", "cyan": "#70a598", "white": "#f8dcc0", "brightBlack": "#4e7cbf", "brightRed": "#fc5f5a", "brightGreen": "#9eff6e", "brightYellow": "#efc11a", "brightBlue": "#1997c6", "brightPurple": "#9b5953", "brightCyan": "#c8faf4", "brightWhite": "#f6f5fb", "background": "#1f1d45", "foreground": "#f8dcc0" } ], "keybindings": [ { "command": {"action": "copy", "singleLine": false }, "keys": "ctrl+c" }, { "command": "paste", "keys": "ctrl+v" }, { "command": "find", "keys": "ctrl+shift+f" }, { "command": { "action": "splitPane", "split": "auto", "splitMode": "duplicate" }, "keys": "alt+shift+d" } ] }
敏叔的