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/Single.code-snippets

10 lines
394 B

{
"Instance": {
"prefix": "Instance",
"body": [
"private static _SingleInstance: $TM_FILENAME_BASE;\r\nstatic GetInstance(): $TM_FILENAME_BASE\r\n{\r\n if (this._SingleInstance) return this._SingleInstance;\r\n this._SingleInstance = new $TM_FILENAME_BASE;\r\n return this._SingleInstance;\r\n}"
],
"description": "单例模式"
}
}