sublime text 3 浏览器预览html

来源:互联网 发布:纸箱计算公式软件 编辑:程序博客网 时间:2024/04/26 12:09


选择Tools - Build System - New Build Syatem...

然后粘贴代码

{     "cmd": ["chrome", "${file}"],     "working_dir": "${file_path}",     "shell":true,     "variants":     [          {             "name": "Run",               "cmd": [ "firefox","${file}"]          }     ]}
保存成 html.sublime-build

将其中的chrome 和firefox换成你希望的浏览器的路径,然后在编写html时,
设置Build System为html,就可以通过ctrl+B启动chrome打开html,shift+ctrl+B启动firefox 打开html

原创粉丝点击