【问题标题】:Phpstorm Live Edit not working with external css and js filesPhpstorm Live Edit 不适用于外部 css 和 js 文件
【发布时间】:2015-03-02 04:52:20
【问题描述】:

Phpstorm Live Edit 无法处理外部 css 和 js 文件。 但是,当我更改 .html (.php) 文件中的 html/css/js 代码时,效果很好。 仅与外部文件有关的问题,例如:

<link rel="stylesheet" type="text/css" href="css.css"/>
<script src="js.js"></script>

【问题讨论】:

标签: css google-chrome phpstorm liveedit


【解决方案1】:

请确保Settings/Build,Execution,Deployment/Debugger/Live Edit 中的'Update' 设置为'Auto in (ms)' 并启用'Restart if hotswap fails'。无论选择何种更新模式,HTML 代码的更改都会在浏览器中自动更新;但是对于 js 和 css 则不是这样 - 在手动模式下,您需要单击调试器工具窗口或主运行菜单中的更新应用程序按钮,或按 cmd+F10 刷新页面。

http://blog.jetbrains.com/webstorm/2014/08/live-edit-updates-in-webstorm-9/

【讨论】:

  • 谢谢伙计!它有帮助。这应该被标记为正确答案。
  • 'auto in (ms)' 现在不见了
  • 当前选项是On changes in (ms)
  • 我在实时编辑选项中打开了所有内容,但仍然无法正常工作 - PHPStorm 2019,3,2
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-02-02
  • 2013-06-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-04-27
相关资源
最近更新 更多