自动重载浏览器时,我将更改保存到HTML文件,在Chrome? [英] Auto-reload browser when I save changes to html file, in Chrome?

查看:549
本文介绍了自动重载浏览器时,我将更改保存到HTML文件,在Chrome?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编辑在Vim的HTML文件,我想刷新浏览器下方的变化每当文件。

I'm editing an HTML file in Vim and I want the browser to refresh whenever the file underneath changes.

有没有谷歌浏览器插件将侦听更改文件和自动刷新页面每次我保存更改的文件?我知道有XRefresh为Firefox,但我无法得到XRefresh在所有运行。

Is there a plugin for Google Chrome that will listen for changes to the file and auto refresh the page every time I save a change to the file? I know there's XRefresh for Firefox but I could not get XRefresh to run at all.

这有多难将是编写一个脚本来做到这一点我自己?

How hard would it be to write a script to do this myself?

推荐答案

我假设你不是在OSX上?否则,你可以做这样的事情与AppleScript的:

I assume you're not on OSX? Otherwise you could do something like this with applescript:

<一个href=\"http://brettterpstra.com/watch-for-file-changes-and-refresh-your-browser-automatically/\">http://brettterpstra.com/watch-for-file-changes-and-refresh-your-browser-automatically/

有也被称为自动刷新加镀铬的插件,你可以指定一个重载每x秒:

There is also a plugin for chrome called "auto refresh plus" where you can specify a reload every x seconds:

<一个href=\"https://chrome.google.com/webstore/detail/auto-refresh-plus/oilipfekkmncanaajkapbpancpelijih?hl=en\">https://chrome.google.com/webstore/detail/auto-refresh-plus/oilipfekkmncanaajkapbpancpelijih?hl=en

这篇关于自动重载浏览器时,我将更改保存到HTML文件,在Chrome?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆