sublime侧边栏管理sidebarEnhancements浏览器设置

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. 设置完成,可以使用快捷键在浏览器中打开当前文件。
原文地址:https://www.cnblogs.com/Jamie1032797633/p/9296476.html