Hotkey for restarting the server in Eclipse

So Ctrl / Cmd + F11 starts the server, but is there a key to restart the server? I am developing using the application engine and GWT if that matters (I suspect not).

+6
eclipse keyboard-shortcuts
source share
4 answers

I don’t know what I know. The only function associated with this shortcut dates from WTP2.0 and its interaction with the Debug session:

Debug Last Run

Have you ever used Run on Server , got an error in your application, and then pressed F11 to check again, only to find out that it is trying to start the server again?
This long-standing and annoying bug has been fixed, so now you can use F11 (or Ctrl - F11 for debugging) to re-launch only the last html or EJB page.

+2
source share

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

Therefore, define a shortcut to switch from the editor (or wherever you want) to the server view. Go to Window β†’ Settings β†’ General β†’ Keys. Select "Show views (servers)", select the "When" attribute: "On Windows" and use your preferred shortcut in the binding input field, for example Ctrl + Alt + R.

Enabling this shortcut will cause the server to restart twice. (The first one will lead you to view the servers, the second one, by default, to restart the server in server view mode.) Using a macro program such as AutoHotKey, you can transfer it to one simple shortcut.

Example for AutoHotKey: Create a script as described in a Tutorial containing only

^r:: Send ^!r^!r

Run the script (Rightclick on it β†’ Run Script), and if you defined the shortcut as described above, you can restart the server with a simple Ctrl + R. Pretty comfortable. :)

+11
source share

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

+2
source share

For MAC users

Start the server - OPTION+COMMAND+R

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

Stop server - OPTION+COMMAND+S

+1
source share

All Articles