- 依次单击菜单栏 【File(文件)】—【Preferences(首选项)】—【User Snippets(用户片段)】,然后选择【python】后会生成python.json文件
- 将文件内容替换为
{
"file header":
{
"prefix": "py",
"body": [
"# !/usr/bin/python",
"# -*- coding: utf-8 -*-"
"\"\"\""
{
"file header":
{
"prefix": "py",
"body": [
"# !/usr/bin/python",
"# -*- coding: utf-8 -*-"
"\"\"\""