Update web resources via hotkey

Hi guys,

I have a dual-monitor setup with IntelliJ running on one side and Firefox on the other.
I work on CSS and HTML simultaneously. I can re-package the CSS file OR the HTML file via the hotkey for 'Compile'.

But how do I re-package BOTH files - without hitting F9 in each separately?
(just like I can check for "frame deactivation")

PS: I use XRefresh which automatically refreshes Firefox on file updates.

Cheers,
Stephanos

0
5 comments

Could you please provide more details? Do you want to update static files or you're running an application server?

Hi guys,

>

I have a dual-monitor setup with IntelliJ running on one side and Firefox on the other.

>

---
Original message URL: http://devnet.jetbrains.net/message/5284426#5284426



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Okay - to summarize:

  • I have a split view of a CSS and a HTML file open in IntelliJ.
  • Tomcat is running and Firefox displays the HTML file that uses the CSS file.
  • I make a change to the CSS file AND the HTML file.
  • I press the hotkey for 'Compile' (F9 for me): It only updates/repackages the currently open file (so HTML OR CSS).

But I want to update BOTH at the same time with only one key press.

How do I do that?

0

Define a macro and bind that to a keyboard accellerator?


Randall Schulz

0

Could you please provide more details?
I already am a user of AutoHotKey - so I guess it could be done (for example: F9 + 'Goto Next Splitter' + F9 + 'Goto Next Splitter').

But I still think IntelliJ should be able to do this natively! I mean multi-monitor setups are very common
...I wonder how other designers develop CSS+HTML with IntelliJ?

0

In case anyone is interested - here is my trivial script for AutoHotKey:

F12::repackage()
     repackage() {
               Send, {F9}
               Sleep, 50
               Send, ^!{Right}
               Sleep, 50
               Send, {F9}
               Sleep, 50
               Send, !^{Right}
     }


Assuming that 2 splitters are open, 'Compile' is tied to F9 and 'Goto Next Splitter' is tied to CTRL+ALT+RIGHT.
Now both resources are updated via F12 and XRefresh picks up the change :-)
0

Please sign in to leave a comment.