sublime text快速运行浏览web/html页面

安装View In Browser插件

快捷键 Ctrl+Shift+P(菜单栏Tools->Command Paletter),输入 pcip选中Install Package并回车,输入View In Browser的插件回车就安装了

 

注意左下角的小文字变化,会提示安装成功

 

 

 

  设置快捷键:

第一步。
Preferences—Key Bindings—User.
然后就跳出一个空白页面。
第二部,将以下代码键入。

[
//ie
    {
        "keys": ["f2"],
        "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe",
            "extensions": ".*"
        }
    },
//chorme
     {
        "keys": ["f1"],
        "command": "side_bar_files_open_with",
        "args": {
            "paths": [],
            "application": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
            "extensions": ".*"
        }
    }
]

其中“keys”是指定快捷键,替换成自己想要的。
application是你浏览器在电脑上的目录地址,替换了就OK了。注意是双斜杠\\。
第三步,保存。
posted @ 2019-10-26 10:02  晨光曦微  阅读(1893)  评论(0编辑  收藏  举报