You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/.vscode/node.code-snippets

45 lines
1.1 KiB

{
"importfs": {
"scope": "typescript",
"prefix": "importfs",
"body": [
"import * as fs from \"fs-extra-plus\";",
],
"description": "导入fs"
},
"importpath": {
"scope": "typescript",
"prefix": "importpath",
"body": [
"import * as path from \"path\";",
],
"description": "importpath"
},
"importSetTimeOut": {
"scope": "typescript",
"prefix": "importnode",
"body": [
"import { setTimeout } from 'timers/promises';",
],
"description": "importSetTimeOut"
},
"importExec": {
"scope": "typescript",
"prefix": "importExec",
"body": [
"import * as child_process from \"child_process\"",
"import util from \"util\";",
"const exec = util.promisify(child_process.exec);"
],
"description": "importExec"
},
"importall": {
"scope": "typescript",
"prefix": "importall",
"body": [
"import * as ${0} from \"${0}\"",
],
"description": "importall"
},
}