设置Webstorm/PHPStorm文件刷新时间 [英] Setting Webstorm/PHPStorm file refresh time

查看:488
本文介绍了设置Webstorm/PHPStorm文件刷新时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能只是我似乎找不到的一些简单设置.事情是这样的:我有一个带有Compass/Sass CSS的Web项目.当我修改Sass文件时,Compass会自动为我创建相应的CSS文件.如果文件已更改,Webstorm会将其全部上传到我的服务器.干净!

It's probably just some simple setting I can't seem to find. Here's the thing: I have a web project with some Compass/Sass CSS. When I modify the Sass file, Compass automatically creates the corresponding CSS-file for me. If the file has changed, Webstorm uploads it to my server, all by itself. Neat!

但是,Webstorm(或PHPStorm)不会立即注意到CSS文件中的更改,而是每隔2分钟左右检查一次外部修改.然后,将CSS文件重新加载并上传到服务器.

However, Webstorm (or PHPStorm, for that matter) doesn't immediately notice the change in the CSS file, but checks on external modifications every 2 minutes or so. The CSS file is then being reloaded and uploaded to the server.

如何设置检查外部更改的时间间隔!? 2分钟(或者说我没有计时)太多了,我宁愿将其设置为10秒.如果我可以告诉Webstorm重新加载CSS文件,那也是对我有用的,因为我知道它已经更改了.有点像日食中的F5. (Webstorm中的F5复制了某些内容,但我在任何地方都找不到刷新命令或按钮.)

How do I set the time interval for checking for external changes!? 2 minutes (or so, I haven't timed it) is too much, I'd rather set it to 10 seconds. What would work for me too, is if I have the option to tell Webstorm to reload the CSS file, because I know it has changed. Sort of like F5 in eclipse. (F5 in Webstorm copies something and I can't find a refresh command or button anywhere.)

感谢您的帮助!

解决方案: 请参阅CrazyCoder的评论.使用WS的 6.0 EAP版本即可解决此问题.

SOLUTION: See CrazyCoder's comment. Using the 6.0 EAP version of WS solves the problem.

推荐答案

此类命令/操作已在此处手动重新加载"-主工具栏上的第3个按钮.

Such command/action to manually "reload" already there -- 3rd button on main toolbar.

文件|同步

用户界面中没有选项可以对间隔进行任何调整.只有"IDE聚集焦点时同步"之类的东西.

There is no option in user interface to make any adjustments for the interval. Only things like "Synchronize when IDE gathers focus".

也许可以通过*.vmoptions文件传递一些配置值,不幸的是,对于文件监视程序,我不知道这些配置值.

Maybe it is possible to pass some config values via *.vmoptions file, bit I know none of them for file watcher, unfortunately.

这篇关于设置Webstorm/PHPStorm文件刷新时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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