Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse shortcut to run launch files

I have some launch files for the project which i use to run from the Run Configurations.

Is there any way to create a keyboard shortcut to run particular launch file so that i can just press a key to launch?

I have tried from Preferences -> General -> Keys, but there i didn't found my required launch configuration.

Thanks

like image 584
Pawan Avatar asked Nov 09 '11 09:11

Pawan


2 Answers

No, there is no way to assign a particular key sequence to a particular launch configuration. All you can do is to either:

  • always launch the previously launched application.
  • launch the active editor. If not launchable, launch the associated project
  • launch the active editor. If not launchable, launch the previously launched application

This applies when you press F11 or ctrl-F11. You can always manually launch a particular file by doing Right Click Run As or alt-shift-X, J for java applications or alt-shift-X T for JUnit tests.

From Preferences->Run/Debug->Launching:

enter image description here

like image 84
Matthew Farwell Avatar answered Sep 22 '22 15:09

Matthew Farwell


The last configuration used can be launched with f11 but you must enable Preferences -> Run/Debug -> Launching -> Always launch the previously...

If you select "Launch the selected resource..." and "Always launch the previously..." first, it will try to launch the active editor and if it's not possible the last configuration launched.

I don't know if there is the possibility to assign shortcuts for the others.

like image 26
Francisco Puga Avatar answered Sep 21 '22 15:09

Francisco Puga