先放图
官网的地址
以下是我的配置文件,以第一个powershell为例
配置写在list数组中。数组中每一个对象对应你的展开箭头下的每一项
guid
是每个用户的id,不要复制,
background什么的就不需要多介绍了,就是设置当前终端的背景
需要注意的是colorScheme
这个是终端中显示文字的颜色等配置,这个属性的值要和setting.json中的schemes
属性下的某一对象的name属性对应
{
// Make changes here to the powershell.exe profile.
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"name": "Windows PowerShell",
"commandline": "powershell.exe",
"hidden": false,
"backgroundImage":"C:\\Users\\Dell\\Pictures\\p站\\6.jpg",
"backgroundImageOpacity":0.5,
"backgroundImageStretchMode":"fill",
"tabTitle" : "屌炸天的PowerShell",
"colorScheme" : "theme1",
"name":"屌爆了powershell",
"selectionBackground":"#00CED1"
},
schemes
这里有三个主题,也就是schemes数组的三个元素,它们的name属性分别是theme1,theme2,theme3,这样在上面终端的配置中"colorScheme"
属性后面写上它们中的某一个,终端就运用了某一个自定义的主题
"schemes": [
{
"name" : "theme1",
"cursorColor": "#00f",
"selectionBackground": "#FFFFFF",
"background" : "#0C0C0C",
"foreground" : "#0f0",
"black" : "#0C0C0C",
"blue" : "#0037DA",
"cyan" : "#0f0",
"green" : "#13A10E",
"purple" : "#881798",
"red" : "#C50F1F",
"white" : "#afa",
"yellow" : "#C19C00",
"brightBlack" : "#767676",
"brightBlue" : "#3B78FF",
"brightCyan" : "#61D6D6",
"brightGreen" : "#16C60C",
"brightPurple" : "#B4009E",
"brightRed" : "#E74856",
"brightWhite" : "#F2F2F2",
"brightYellow" : "#afa"
},{
"name" : "theme2",
"cursorColor": "#00f",
"selectionBackground": "#FFFFFF",
"background" : "#0C0C0C",
"foreground" : "#56f",
"black" : "#0C0C0C",
"blue" : "#0037DA",
"cyan" : "#af0",
"green" : "#13A10E",
"purple" : "#881798",
"red" : "#C50F1F",
"white" : "#afa",
"yellow" : "#C19C00",
"brightBlack" : "#767676",
"brightBlue" : "#3B78FF",
"brightCyan" : "#61D6D6",
"brightGreen" : "#16C60C",
"brightPurple" : "#B4009E",
"brightRed" : "#E74856",
"brightWhite" : "#F2F2F2",
"brightYellow" : "#afa"
},{
"name" : "theme3",
"cursorColor": "#00f",
"selectionBackground": "#FFFFFF",
"background" : "#0C0C0C",
"foreground" : "#f06",
"black" : "#0C0C0C",
"blue" : "#0037DA",
"cyan" : "#af0",
"green" : "#13A10E",
"purple" : "#881798",
"red" : "#C50F1F",
"white" : "#afa",
"yellow" : "#C19C00",
"brightBlack" : "#767676",
"brightBlue" : "#3B78FF",
"brightCyan" : "#61D6D6",
"brightGreen" : "#16C60C",
"brightPurple" : "#B4009E",
"brightRed" : "#E74856",
"brightWhite" : "#F2F2F2",
"brightYellow" : "#afa"
}
],
以上只是基本的配置,想要更加炫酷的终端,可以去官网查看,相信这些配置对于我们开发者来说根本不是什么难事,本文感觉略显啰嗦,大家可以自己去探索的。