sidebarEnhancements是为了增强sublime Text侧边栏功能的一个插件,但是同时也可以实现设置浏览器浏览当前文件的功能。

  1. Ctrl+Shift+p
  2. 输入package control:Install packages
  3. 输入查找sidebarEnhancements,安装
  4. 在preferences-->key bindings中进行如下设置:
    [{
        "keys": ["f5"],
        "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "C:\\Users\\Administrator\\AppData\\Local\\Google\\Chrome\\Application\\chrome.exe",
            "extensions": ".*"
        }
    }, {
        "keys": ["f6"],
        "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
            "extensions": ".*"
        }
    }]
  5. 设置完成,可以使用快捷键在浏览器中打开当前文件。

 

相关文章:

  • 2021-12-03
  • 2021-07-26
  • 2022-12-23
  • 2021-10-03
  • 2021-06-02
  • 2022-12-23
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-07-03
  • 2021-12-13
相关资源
相似解决方案