1.安装sidebarenhancements插件

ctrl+shift+p —> Install Package —> 找到SideBarEnhancements

2.配置预览快捷键

// chrome
{ "keys": ["f12"], "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe",
            "extensions":".*"
        }
 },
// ie
 { "keys": ["f4"], "command": "side_bar_files_open_with",
         "args": {
            "paths": [],
            "application": "C:/Program Files/Internet Explorer/iexplore.exe",
            "extensions":".*"
        }
}
上面的代码中有两处需要注意的地方,
一个是keys表示快捷键,表示f12可以启动chrome进行预览。
另一个是application,表示浏览器所在的安装路径,只有路径配置正确,才能够正常调用浏览器。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-11
  • 2021-12-27
  • 2021-12-10
  • 2021-06-21
猜你喜欢
  • 2021-05-11
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
相关资源
相似解决方案