sublime text 3 扩展插件SideBarEnhancements用法教程

SideBarEnhancements本是加强侧边栏的插件,这里将教你们如何用来作sublime text 3浏览器预览插件,并可自定义浏览器预览的快捷键。chrome

第一步:安装此插件,搜索相关教程,本博客有说明浏览器

第二步:安装好之后点击工具栏的preferences > package setting > side bar > Key Building-User,键入如下代码app

[ide

/*{ "keys": ["alt+f12"], "command": "side_bar_open_in_browser", "args":{"paths":[], "type":"production", "browser":""} },*/工具

{ "keys": ["ctrl+shift+c"], "command": "copy_path" }, ui

//chrome { "keys": ["f1"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "C://Program Files (x86)//Google//Chrome//Application//chrome.exe", "extensions":".*" } }, spa

//firefox { "keys": ["f2"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "E://软件//Firefox//firefox.exe", "extensions":".*" //匹配任何文件类型 } }, firefox

//ie { "keys": ["f3"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "C://Program Files//Internet Explorer//iexplore.exe", "extensions":".*" } }, 插件

]教程

这里设置按Ctrl+Shift+C复制文件路径,按F1~F3分别在chrome,firefox,IE浏览器预览效果,固然你也能够本身定义喜欢的快捷键,最后注意代码中的浏览器路径要以本身电脑里的文件路径为准。

相关文章
相关标签/搜索