sublime text3 mac 浏览器 快捷键设置
先装 Sidebar Enhancements 插件然后在 keybindings-user 中添加以下内容
{
"keys": ["f2"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/Applications/Safari.app/Contents/MacOS/Safari",
"extensions": ".*"
}
},
然后f2用Safari打开使用正常
下面是chrome的
不知道直接用空格行不行,不行的话Google Chrome.app空格用反斜杠转义一下
=====================================
{
"keys": ["f2"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
"extensions": ".*"
}
},
附上自己的快捷设置:
[
//快速复制快捷键:Ctrl+Alt+方向键(上下均可)
{ "keys": ["control+alt+up"], "command": "duplicate_line" },
{ "keys": ["control+alt+down"], "command": "duplicate_line" },
//拷贝当前文件路径快捷键:ctrl+shift+c
{ "keys": ["ctrl+shift+c"], "command": "copy_path" },
//侧栏显示与隐藏快捷键:command+F3
{ "keys": ["super+f3"], "command": "toggle_side_bar" },
{
//Google快捷键,command+F1
"keys": ["super+f1"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome",
"extensions": ".*"
}
},
{
//Safari快捷键,Command+F2
"keys": ["super+f2"],
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "/Applications/Safari.app/Contents/MacOS/Safari",
"extensions": ".*"
}
}
]