First version which works
This commit is contained in:
parent
ddaae41adc
commit
1306ead88f
1 changed files with 27 additions and 21 deletions
|
|
@ -1,25 +1,31 @@
|
||||||
{
|
{
|
||||||
"variables": {
|
"variables": {
|
||||||
"pyversion": "python3",
|
"pythonversion": "python3",
|
||||||
"charset": "utf8",
|
"encoding": "utf-8"
|
||||||
"indentation": " ",
|
|
||||||
"newline": "\n"
|
|
||||||
},
|
},
|
||||||
|
|
||||||
"python": {
|
"python": {
|
||||||
"filters": "python",
|
|
||||||
"profile": "python",
|
|
||||||
"snippets": {
|
"snippets": {
|
||||||
"shebang" : "#!/usr/bin/env ${pyversion}${newline}# coding: ${charset}${newline}${newline}",
|
"py3": "#!/usr/bin/${pythonversion}\n# -*- coding: ${encoding} -*-\n\n\n${cursor}\n\n\ndef main():\n\tpass\n\n\nif __name__ == \"__main__\":\n\tmain()\n",
|
||||||
"openfile" : "",
|
"fopen" : "def openfile(filepath):\n\twith open(filepath, \"r\", encoding=\"${encoding}\") as currentfile:\n\t\treturn currentfile.readlines()\n\n\n",
|
||||||
"savefile" : "",
|
"fsave" : "def savefile(filepath, newcontent):\n\twith open(filepath, \"w\", encoding=\"${encoding}\") as currentfile:\n\t\tcurrentfile.writelines(newcontent)\n\n\n",
|
||||||
"basepath" : ""
|
"basepath" : "",
|
||||||
},
|
"parameter": "",
|
||||||
"abbreviations": {
|
"class": "",
|
||||||
"osfile": "openfile+savefile"
|
"config": ""
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
"java": {
|
||||||
|
"snippets": {
|
||||||
|
"class": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue