Phpstorm Live Edit不能使用外部css和js文件。 但是當我更改.html( .php)文件中的html/css/js代碼時,它很好用。 問題只與外部文件,如:Phpstorm Live Edit不能使用外部css和js文件
<link rel="stylesheet" type="text/css" href="css.css"/>
<script src="js.js"></script>
Phpstorm Live Edit不能使用外部css和js文件。 但是當我更改.html( .php)文件中的html/css/js代碼時,它很好用。 問題只與外部文件,如:Phpstorm Live Edit不能使用外部css和js文件
<link rel="stylesheet" type="text/css" href="css.css"/>
<script src="js.js"></script>
請確保在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/
它是由grAPPfruit面前回答:http://stackoverflow.com/a/28094448/3997577 – nakan 2015-05-05 13:55:58