Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add application launch shortcut in Eclipse?

I've been programming Android in Eclipse for about a year now and I have always launched my app by right clicking on my project name in the project explorer, followed by "run as", then "Android Application". There has to be a better way...

Is there a way to change this (three mouse clicks):

"Right click on project" -> "run as" -> "Android Application"

To this (one hotkey press):

<My favorite hotkey>

So I can just press one button to launch my app?

Thanks!

like image 388
Brad Hein Avatar asked Aug 07 '10 14:08

Brad Hein


People also ask

How do I set shortcut Keys in Eclipse?

the main preference page can be found under window > preferences > general > keys (or faster: press ctrl+3 , type keys and press enter ). from here you can see all commands and assign/change their associated keyboard shortcuts.

What does Ctrl Shift R do in Eclipse?

CTRL SHIFT R – Open a resource. You need not know the path and just part of the file name is enough. CTRL E – Open a file (editor) from within the list of all open files. CTRL PAGE UP or PAGE DOWN – Navigate to previous or next file from within the list of all open files.

Is there a run shortcut in Eclipse?

Ctrl + Shift + X, J This shortcut can be used to run any Java application. There are several other options available to run. To Run on server use R instead of J.To run Java Applet use A instead of J.


2 Answers

  1. Eclipse/Window > Preferences > Run/Debug > Launching
  2. Select 'Always launch the previously launched application' in the 'Launch Operation' section.
  3. Then just use your shortcut of choice. I think Ctrl + F11 is the default for this
like image 106
Bruiser Avatar answered Sep 20 '22 02:09

Bruiser


In preferences, go to General -> keys and search for the Android Application command. You can set a new key combination from here.

like image 28
krock Avatar answered Sep 20 '22 02:09

krock