zoukankan      html  css  js  c++  java
  • 【转】sublime配置默认浏览器+多浏览器快捷键

    配置在Chrome,Firefox中打开

    安装 SideBarEnhancements

    然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications

    然后在这里边设置firefox打开的方式。

    application : 路径要修改为自己默认安装的路径。
    复制代码
    [
        {"id": "side-bar-files-open-with",
            "children":
            [
                //application firefox
                {
                    "caption": "firefox",
                    "id": "side-bar-files-open-with-firefox",

                    "command": "side_bar_files_open_with",
                    "args": {
                                "paths": [],
                                "application": "D:\Program Files\Mozilla Firefox\firefox.exe",
                                "extensions":".*" //any file with extension
                            }
                },

                {"caption":"-"},
                {
                    "caption": "chrome",
                    "id": "side-bar-files-open-with-chrome",

                    "command": "side_bar_files_open_with",
                    "args": {
                                "paths": [],
                                "application": "C:\Program Files\Google\Chrome\Application\chrome.exe",
                                "extensions":".*" //any file with extension
                            }
                }
            ]
        }
    ]
    复制代码

    配置在IE中打开

    Key bindings -> User

    复制代码
    [
         { "keys": ["ctrl+shift+c"], "command": "copy_path" },
         { "keys": ["alt+f12"], "command": "open_in_browser" },
         { "keys": ["f12"], "command": "side_bar_files_open_with",
                 "args": {
                    "paths": [],
                    "application": "D:\Program Files\Mozilla Firefox\firefox.exe",
                    "extensions":".*" //any file with extension
                } },
        { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
                "args": {
                    "paths": [],
                    "application": "C:\Program Files\Google\Chrome\Application\chrome.exe",
                    "extensions":".*" //any file with extension
                } 
         }     
        
    ]
    复制代码

    如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。

    这样就可以用这三个键在浏览中预览页面了:

    F12 : Firefox

    alt + F12 : IE

    ctrl + F12 : chrome

    当然,你也可以配置,其它配置器用这样的方式预览。

  • 相关阅读:
    微服务划分的姿势
    微服务的时间和成本去哪儿了
    假如你是架构师,你要做些什么
    说透代码评审
    从哲学层面浅谈计算机学习方法论
    分布式事务:两阶段提交与三阶段提交
    敏捷史话(四):敏捷是人的天性 —— Arie van Bennekum
    敏捷史话(三):笃定前行的勇者——Ken Schwaber
    敏捷史话(二):Scrum社区的悲剧性损失——Mike Beedle
    敏捷史话(一):用一半的时间做两倍的事——Scrum之父Jeff Sutherland
  • 原文地址:https://www.cnblogs.com/phoebewang00/p/5651119.html
Copyright © 2011-2022 走看看