这里是一只想要转行前端的咸鱼崽
话说咸鱼崽下班回家后,终于开始执行传说中的学习计划。代码这玩意的学习,第一步肯定是配置开发环境。以咸鱼崽现在的咸鱼水平,暂时还不需要很高大上的IDE,所以咸鱼崽决定装个sublime,敲敲html代码,看看页面效果咋样。
之前装过sublime,也安装过view in browser 插件,在浏览器看页面效果以迪安问题没有,这次不知道为什么,一直在报错。百度了也没解决。
对于强迫症来说吗,这很难忍。然后我就开始追本溯源寻找原因。
能在浏览器查看html文件效果
View In Browser plugin v2.0.0, Python 3
C:\Program Files (x86)\Mozilla Firefox\firefox.exe -new-tab file:///c:/users/sieh/appdata/local/temp/tmpfzy5ey.htm
Traceback (most recent call last):
File "./python3.3/subprocess.py", line 1104, in _execute_child
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 1088, in run_
return self.run(edit)
File "C:\Users\**\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package\ViewInBrowserCommand.py", line 238, in run
File "C:\Users\**\AppData\Roaming\Sublime Text 3\Installed Packages\View In Browser.sublime-package\ViewInBrowserCommand.py", line 191, in openBrowser
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1110, in _execute_child
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
果然错误神马的,找官方文档准没错
Configuring Browsers
By default this plugin will open files in Firefox. You can configure it to open using another browser of your choice. To do this, choose Settings - User from Preferences > Package Settings > View In Browser.
插件默认打开FireFox, 而我这只咸鱼崽运气碰巧非常好的没有安装FireFox,也没有更改快捷键
CTRL + ALT + F - Firefox
CTRL + ALT + C - Chrome
CTRL + ALT + I - Internet Explorer
CTRL + ALT + S - Safari