Sublime Text 3 个人开发习惯
1、添加author、date到函数注释里面 docblockr插件
a.preferences——package settings——docblockr——settings-user点击打开
b.在文件里面进行配置
{
"jsdocs_extra_tags":["@author cygnet","@date {{datetime}}"]
}
c.重启打开就OK
2、Sublime Text3 设置多个快捷键打开不同的浏览器
a. 安装 SideBarEnhancements 插件
b. preferences-key bindings-user(设置个性化的快捷键)粘贴以下代码
{
"keys": ["f1"],
"command": "side_bar_files_open_with", "args": {"application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f2"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Users\\delll\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f4"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files\\Internet Explorer\\iexplore.exe", "extensions": ".*", "paths": []}
},
{
"keys": ["f5"],
"command": "side_bar_files_open_with", "args": {"application": "C:\\Program Files (x86)\\360\\360safe\\360AppLoader.exe", "extensions": ".*", "paths": []}
}
// application 属性设置浏览器安装包的路径
c.重启OK
3、sublime text3 自定义插件 使用快捷键实现插入修改状态
a. preferences——browse Packages—User
b.新建一个test.py文件
c. 复制下面代码在文件中。
import datetime
import sublime_plugin
class UpdateInfoCommand(sublime_plugin.TextCommand):
def run(self, edit):
self.view.run_command("insert_snippet",
{
"contents": "// dateTime " "%s" %datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")+ " " +"by cygnet"
}
)
d.在 preferences -- Key bindings -- user
{
"command": "update_info",
"keys": [
"ctrl+q"
]
}
e.保存代码即可实现 快捷键 ctrl + q 实现 // dateTime 2017-03-25 18:17:17by cygnet

浙公网安备 33010602011771号