Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to switch between test and class in eclipse?

Lets say you create a class Foo and a test FooTest ( standard JUnit test ) I want a keyboard shortcut to help quickly switch between the test and the class.

If that is not possible, something like TextMate's "Run focussed test" (Command + Shift + R) might be of great help.

like image 474
Manish Chakravarty Avatar asked Jun 09 '10 10:06

Manish Chakravarty


People also ask

What is Ctrl Shift G in Eclipse?

Search – Eclipse Shortcuts CTRL SHIFT G – Search for current cursor positioned word reference in workspace. CTRL H – Java search in workspace.

What is Ctrl Shift L in Eclipse?

2. 3. Quick Search became part of the Eclipse platform some time ago. It can be found in Search > Quick Search and the default key is Ctrl+Alt+Shift+L.

What does Ctrl k do in Eclipse?

In Eclipse, if the cursor is over a word and you press Ctrl + K you will jump to the next occurrence of that word in the file.


1 Answers

You can also use moreunit. I just installed it and it works fine, allowing to switch between source class and test class and also to run test class being in source class editor.

like image 154
maxim_ge Avatar answered Sep 21 '22 02:09

maxim_ge