簡體   English   中英

如何保存我自己的 html 樣板以供將來使用快捷方式?

[英]How can I save my own html boilerplate for future use shortcut?

我知道我們有這個 '.' 快捷方式,以便自動填寫標准 html 樣板文件。

但我想在 it() 中添加一行並保存此表單以備將來使用——該怎么做?

試試這個:打開你的 vs 代碼

  1. go 查看->命令調色板或 (ctr + shift + P)

  2. 鍵入並輸入 Snippets:Configure User Snippets

  3. select 並輸入“html.json”

  4. 復制並粘貼以下代碼

    “樣板代碼”:{

     "prefix": "boilerplatecode", "body": [ "<html>", "<head>", "</head>", "<body>", "</body>", "</html>" ], "description": "Log output to console" } }
  5. 編輯方括號內的代碼並保存

  6. 創建一個 html 頁面並鍵入快捷鍵樣板代碼並輸入,然后代碼會自動出現在您的編輯器中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM