📜  创建自定义代码段 vscode - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:30.036000             🧑  作者: Mango

代码示例1
/*To create or edit your own snippets, select User Snippets 
under File > Preferences > User Snippets (Code > Preferences on macOS), 
and then select the language for which the snippets should appear*/

// Snippets are written in JSON Example:
{
    "Your Snippet Name": {
      "prefix": "ysn",
      "body": [
          "//Here you type all the code that should appear",
          "//Separating each line",
          "//Remember to add tabs with \t"
      ]
    }
}