设置vscode的终端颜色,字体的设置
- code-> preferences -> setting --> 搜索workbench
- 选择第二个 workbench.colorCustomizations 修改 edit in setting.json
- 添加如下内容(只需要添加一对key, value即可)
"workbench.colorCustomizations": {
"terminal.background": "#181818",
"terminal.foreground": "#26e045",
"terminalCursor.background": "#D8D8D8",
"terminalCursor.foreground": "#D8D8D8",
"terminal.ansiBlack": "#181818",
"terminal.ansiBlue": "#7CAFC2",
"terminal.ansiBrightBlack": "#585858",
"terminal.ansiBrightBlue": "#7CAFC2",
"terminal.ansiBrightCyan": "#86C1B9",
"terminal.ansiBrightGreen": "#A1B56C",
"terminal.ansiBrightMagenta": "#BA8BAF",
"terminal.ansiBrightRed": "#AB4642",
"terminal.ansiBrightWhite": "#F8F8F8",
"terminal.ansiBrightYellow": "#F7CA88",
"terminal.ansiCyan": "#86C1B9",
"terminal.ansiGreen": "#A1B56C",
"terminal.ansiMagenta": "#BA8BAF",
"terminal.ansiRed": "#AB4642",
"terminal.ansiWhite": "#D8D8D8",
"terminal.ansiYellow": "#F7CA88",
"terminal.integrated.cursorBlinking": true,
"terminal.integrated.lineHeight": 1.6,
"terminal.integrated.letterSpacing": 0.1,
"terminal.integrated.fontSize": 30, //字体大小设置
"terminal.integrated.fontFamily": "Lucida Console", //字体设置
"terminal.integrated.shell.linux": "/bin/zsh",
},
其它的颜色设置参考(颜色设置)[https://glitchbone.github.io/vscode-base16-term/#/default-dark]
vscode 打开颜色面板
- customize --> color theme --> 选择主题即可