您的位置:首页 > 编程语言

Sublime Text 常用代码片段(持续更新)

2018-01-13 11:00 543 查看

关于如何配置参考 Sublime Text Snippets(代码片段)功能

golang

gohelloword 快捷键 go

<snippet>
<content><![CDATA[
package main

import (
"fmt"
)

func main() {
fmt.Println("Hello, World!")
${1:fmt}

}

]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>go</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<description>gohelloword</description>
<scope>source.go</scope>
</snippet>


vue.js

new Vue对象快捷键 newvue

<snippet>
<content><![CDATA[
new Vue({
el:"${1:#app}",
})

]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>newvue</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<description>new vue</description>
<scope>source.js</scope>
</snippet>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: