[英]How can I save my own html boilerplate for future use shortcut?
我知道我們有這個 '.' 快捷方式,以便自動填寫標准 html 樣板文件。
但我想在 it() 中添加一行並保存此表單以備將來使用——該怎么做?
試試這個:打開你的 vs 代碼
go 查看->命令調色板或 (ctr + shift + P)
鍵入並輸入 Snippets:Configure User Snippets
select 並輸入“html.json”
復制並粘貼以下代碼
“樣板代碼”:{
"prefix": "boilerplatecode", "body": [ "<html>", "<head>", "</head>", "<body>", "</body>", "</html>" ], "description": "Log output to console" } }
編輯方括號內的代碼並保存
創建一個 html 頁面並鍵入快捷鍵樣板代碼並輸入,然后代碼會自動出現在您的編輯器中。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.