Best practice for rapid preview?

(I'm using version 4 EAP)

It seems that jetbrains is not interested in supporting live browser preview.  ( see http://devnet.jetbrains.net/message/5316011#5316011)

So what's the next best thing?  Now that I've worked in editors that support it (mainly Hyperedit) it's hard to leave the headspace of that kind of immediate feedback.

So ideally I'd like to put some kind of hook into PHPStorm's keypress or syntax check re-parse so that it calls out to my browser and triggers a page refresh.  I'm guessing that's not possible.

So how about a custom keyboard command to force the refresh?  Does PHPStorm support keyboard commands to launch OS command line scripts?  If so I could write a little batch to precompile my javascripts and then refresh the browser.

Or am I missing something?

Thanks for any info on this.

2 comments
Comment actions Permalink

Hi Tom,

  1. You can use Settings | External Tools to "launch OS command line scripts". Once created, you can assign custom shortcut to it in Settings | Keymap
  2. Have a look at LiveReaload (previously XRefresh) -- http://livereload.com/
0
Comment actions Permalink

Thanks for the tip!  LiveReload looks great.

0

Please sign in to leave a comment.