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" ], }
作者:AshJo
出处:https://www.cnblogs.com/ashjo009/
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。