When I re-run a html file, the result doesn't refreshed.
When I run a html file in Webstrom, it works fine first time. But, If I revise some code and re-run the file, it doesn't change. I have to run twice so that the result change. How can I fix this problem?
Please sign in to leave a comment.
Do you use Run button to run your HTML? When you run your page with Run action, WebStorm looks for a browser page with the corresponding URL. If URL is already opened in browser, nothing happens - so, re-running already opened page doesn't refresh it, you need to reload it manually.
I'd suggest using Debug with Live Edit instead - when debugging, changes are hotswapped, and you can see the result in browser instantly, no need to re-run the code. Just make sure that Live Edit is enabled - you have to tick Update application in Chrome checkbox in Settings | Build, Execution, Deployment | Debugger | Live Edit. See https://www.jetbrains.com/help/phpstorm/2018.1/live-editing.html, Activating Live Edit
Or, try using the browsers bar in HTML editor - page will be reloaded when clicking the browser icon