1. 修改代码背景颜色
1)Shift + Command + P,搜索框输入:settings.json
2)输入配置
{
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#86e9e93d", # 修改鼠标所在行背景色
"editor.lineHighlightBorder": "#ffffff30", # 修改选中区域边框颜色
"editor.selectionBackground": "#15709a" # 修改选中区域背景色
}
}
2. 配置python文件模板
1)如下图
2)选择python.json文件
3)配置
{
"HEADER": {
"prefix": "header",
"body": [
"#!/usr/bin/env python",
"# -*- encoding: utf-8 -*-",
"'''",
"@Time : $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"@Author : ***@***.com.cn",
"@Desc : ",
"'''",
"",
"$0"
],
}
}
4)新建.py文件,在文件内输入header,选中如下图提示项,回车即可
?