正在回答
3回答
安装 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 } } ]
如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。这样就可以用这三个键在浏览中预览页面了:
F12 : Firefox
alt + F12 : IE
ctrl + F12 : chrome
当然,你也可以配置,其它配置器用这样的方式预览。祝学习愉快!
前端小白入门系列课程
- 参与学习 人
- 提交作业 11218 份
- 解答问题 36713 个
从一个不会编程的小白到一个老司机是需要过程的,首先得入门,学习基础知识,然后才能进阶,最后再到精通,本专题是你走进前端世界的不二选择!
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星