I'm always running an Android application and a JUnit tests (not Android JUnit Test) back and forth. I've used the Run toolbar button in Eclipse to switch between them, which is quite boring after several times. It is possible to assign a run configuration to a shortcut key in Eclipse? (or at least create a toolbar button that does that)
Asked
Active
Viewed 1,817 times
3

Cœur
- 37,241
- 25
- 195
- 267

Randy Sugianto 'Yuku'
- 71,383
- 57
- 178
- 228
-
Reopen rationale: This question is more narrow than choosing an arbitrary configuration. Accordingly, it has a much less elaborate solution. – Edward Brey Oct 10 '13 at 14:35
2 Answers
0
The standard Run shortcut (Ctrl+F11) is context sensitive depending on which window has focus. Take advantage of this by using Run History to run your app from a code window. Then open the JUnit window and use Run History to run the tests. Now, you can press Ctrl+F11 from either place to run the desired project.
You can bind a keyboard shortcut to the JUnit window and use standard window navigation keys to get to a code window. These combined with Ctrl+F11 make for pragmatic key combination.

Edward Brey
- 40,302
- 20
- 199
- 253