Contents

Code自訂snippet

Contents

最近寫blog很長手動打`

想說snippet來增加寫文章速度 也不用在找asset_img`
語法我真的記不太住….

目前我為Hexo設定的snippets

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
	"Read More": {
  		"prefix": "!more",
  		"body": [
    			"<!--more-->"
  		],
  		"description": "Read More"
	},
	"asset_img": {
		"prefix": "asset",
    	"body": [
    		"![${1:title}](./${1:img.png})"
  		],
  		"description": "asset_img"
	},
	"asset_link": {
		"prefix": "asset",
		"body": [
		"[${1:title}](${1:url})"
		],
		"description": "asset_link"
	}
}

這三個寫文章應該很夠用

##參考來源
snippet generator