Option "Reload page in built-in preview" does not work, no matter if I choose "On save" or "On change" (need this one). Pass to option: Settings -> Tools -> Web Browsers and Preview (the option is in bottom)
As you see in image below, I echoed 2 five times changes still didn't appear on preview, that's why need the reload option to get working.
Deployment settings




The
Reload page in built-in previewfeature only works for the PhpStorm built-in web server.When you create a default deployment configuration with
Web server URLspecified, PhpStorm renders it through the remote server.As a workaround, remove the
Web server URLand configure a local PHP interpreter at Settings | PHP. At the moment, you probably don't have it configured and get the 502 error because of that.Related request on our tracker: WI-60573