Wes Nolte
Wes Nolte

Reputation: 866

Shortcut key to restart server in Eclipse

So Ctrl/Cmd + F11 starts the server, but is there a key to restart the server? I'm developing using app engine and GWT if that makes any difference (I suspect not).

Upvotes: 7

Views: 13767

Answers (4)

For MAC users

Start the server - OPTION+COMMAND+R

Start the server in DEBUG mode - OPTION+COMMAND+D

Stop the server - OPTION+COMMAND+S

Upvotes: 2

newur
newur

Reputation: 520

The approach of Nirmal Patel can be extended to restart the server while using only the keyboard.

Therefore define a shortcut to switch from the editor (or wherever you want) to the Servers View. Go to Window -> Preferences -> General -> Keys. Select 'Show Views (Servers)', choose for the 'When' attribute: 'In Windows' and use your prefered shortcut in the binding input field, for example Ctrl + Alt + R.

Hitting this shortcut twice now will restart the server. (First one will bring you to the Servers View, second is the default to restart the server while in Servers View.) With a macro program like AutoHotKey you can bring it down to one simple shortcut.

Example for AutoHotKey: Create a script like discribed in the Tutorial containing just

^r:: Send ^!r^!r

Run the script (Rightclick on it -> Run Script) and if you defined the shortcut like mentioned above, you can now restart the server with a simple Ctrl + R. Pretty convenient. :)

Upvotes: 11

Nirmal Patel
Nirmal Patel

Reputation: 5168

While focused on the Servers view, you can press Ctrl + Alt + R to restart the server.

Upvotes: 3

VonC
VonC

Reputation: 1324537

Not that I know of.
The only feature related to that shortcut dates from WTP2.0 and its interaction with Debug session:

Debug Last Launched

Have you ever used Run on Server, hit a bug in your application, and then hit F11 to test again, only to find out that it tries to start the server again instead?
This long standing and annoying bug has been fixed, so you can now use F11 (or Ctrl-F11 for debug) to rerun just the last html page or EJB.

Upvotes: 2

Related Questions