Pawan
Pawan

Reputation: 273

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

Upvotes: 12

Views: 10881

Answers (3)

The EasyLearn Academy
The EasyLearn Academy

Reputation: 927

shortcut key to run android project in Eclipse is

Ctrl+F11

Upvotes: 2

Francisco Puga
Francisco Puga

Reputation: 25168

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.

Upvotes: 2

Matthew Farwell
Matthew Farwell

Reputation: 61715

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

Upvotes: 9

Related Questions