sublime text3装了open in browser 怎么html文档还是不能在浏览器中显示

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sublime text3装了open in browser 怎么html文档还是不能在浏览器中显示相关的知识,希望对你有一定的参考价值。

不用装open in browser

配置在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


]

]
设置快捷键
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



]
参考技术A

    点 preferences

    点 keybindings

    [

    "keys": ["ctrl+shift+alt+r"], "command": "open_in_browser" ,

    ]

    来替换原来的内容,

    按ctrl+s

    关闭

    快捷键ctrl+shift+alt+r 打开网页

参考技术B 要设置默认浏览器吧

以上是关于sublime text3装了open in browser 怎么html文档还是不能在浏览器中显示的主要内容,如果未能解决你的问题,请参考以下文章

sublime Text3在mac下设置窗口实现多标签

sublime text3前端开发插件配置以及使用(个人喜爱)

Sublime Text3:添加右键用Sublime Text3 打开文件和文件夹

sublime text3编辑less高亮

sublime text3 好用的插件!!!

sublime text3 安装配置