sublime 浏览器快捷键配置


sublime 配置 及常用插件:http://blog.csdn.net/wirelessqa/article/details/8453739
Preference-defalut:

【将Tab键自动替换为4个空格】

// The number of spaces a tab is considered equal to
“tab_size”: 4,

// Set to true to insert spaces when tab is pressed
“translate_tabs_to_spaces”: true,

SideBarEnhancements是一个可以自定义打开方式快捷键的工具包。他可以定义不同的快捷键打开不同的浏览器

打开sublime :
Preferences>按钮绑定-用户 
然后复制下面代码 保存 重新打开sublime 就能按F1-火狐 F2-Chrome F3-IE 快捷键在浏览器打开当前文件

 

 1 [
 2     { "keys": ["ctrl+shift+c"], "command": "copy_path" },
 3     //firefox
 4     { "keys": ["f1"], "command": "side_bar_files_open_with",
 5              "args": {
 6                 "paths": [],
 7                 "application": "C:\\Program Files\\Mozilla Firefox\\firefox.exe", /*firefox安装文件目录*/
 8                 "extensions":".*" //匹配任何文件类型
 9             }
10     },
11     //chrome
12     { "keys": ["f2"], "command": "side_bar_files_open_with",
13             "args": {
14                 "paths": [],
15                 "application": "D:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",/*chrome安装文件目录*/ 
16                 "extensions":".*"
17             }
18      },
19     //ie
20      { "keys": ["f3"], "command": "side_bar_files_open_with", 
21              "args": {
22                 "paths": [],
23                 "application": "D:\\Program Files\\Internet Explorer\\iexplore.exe",/*IE安装文件目录*/ 
24                 "extensions":".*"
25             }
26     },
27      { "keys": ["ctrl+alt+shift+p"], "command": "autoprefixer" }
28     
29 ]

 

posted @ 2014-08-21 22:25  ElvinLong  阅读(343)  评论(0编辑  收藏  举报