VSCode+Python添加默认头部信息

设置默认的头部信息

打开VScode——File——Preference——User Snippets——选择Python

"HEADER": { "prefix": "header", "body": [ "#!/usr/bin/env python", "# -*- encoding: utf-8 -*-", "'''", "@Filename :$TM_FILENAME", "@Description :", "@Datatime :$CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND", "@Author :AshJo", "@Version :v1.0", "'''", "", "$0" ], }

posted @ 2020-09-09 11:55  AshJo  阅读(660)  评论(0编辑  收藏  举报