标签:
importdatetime importsublime_plugin classAddInfoCommand(sublime_plugin.TextCommand): defrun(self,edit): self.view.run_command("insert_snippet", { "contents":"/**""\n" " * @Author: HTL""\n" " * @DateTime: " "%s" %datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+"\n" " * @Description: Description""\n" " */" } )
Preference→KeyBindings-User:
[
{
"command":"add_info",
"keys":[
"ctrl+shift+,"
]
}
]
标签:
原文地址:http://www.cnblogs.com/huangtailang/p/4500244.html