在windows下搜狗等输入法,可以自定义时间,例如拼音输入sj
,搜狗将在词汇列表中提供2014-09-08 10:51:42
。
另外,st也有一个插件支持插入当前时间,见https://github.com/FichteFoll/sublimetext-insertdate。
安装后,可以使用快捷键F5
,会弹出窗口:
也可以自定义时间格式,例如我常使用hexo写些静态博客,这需要在每篇博客里插入时间。可以这样做:
打开文件insert_date.sublime-settings
,将:
"user_prompt_config": []
修改为:
"user_prompt_config": [
{"name": "hexo",
"format": "%Y-%m-%d %H:%M:%S"
}
]
按F5
会得到: