Sublime 自动跳出括号 自定义注释

打开sumblime 首选项->按键绑定

在末行加逗号" , "后复制以下内容后保存:

 

[
{"keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
    [
        { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\ %>\\}\\;\\,]", "match_all": true },
        { "key": "preceding_text", "operator": "not_regex_match", "operand": "^.*\\{$", "match_all": true  },
        { "key": "auto_complete_visible", "operator": "equal", "operand": false }
    ]
}
]

 

原文章链接参考:

https://www.jianshu.com/p/45ef33d357fc

 

安装Doc​Blockr插件,在设置中选择user添加以下代码:

{
    "jsdocs_extra_tags":
    ["--------------------------------------------------------------------------------- ",
    "【函数说明】:无",
    "【函数参数】:无",
    "【函数返回】:无",
    "【函数作者】: author",
    "@DateTime {{date}}",
    "--------------------------------------------------------------------------------- "],
    "jsdocs_function_description":false
}

// {"jsdocs_extra_tags":["@Author Hybrid","@DateTime {{date}}","@copyright ${1:[copyright]}","@license ${1:[license]}","@version ${1:[version]}"],"jsdocs_function_description":false}

你可能感兴趣的:(其他)