views:

273

answers:

3

How do you switch between header (.h) and implementation files (.cpp) in Eclipse when using the C++/CDT environment with a keyboard shortcut?

In XCode you can quickly switch between headers and implementation with applekey option and up/down arrow keys. I was hoping that eclipse had something similar, but I haven't found it yet.

+5  A: 

Ctrl+Tab.

See in Preferences -> Keys.

Marcin Gil
A: 

You can also ctrl+click on an identifier ( method name of member,... ) That way you seldomly need ctrl+tab

ufo
But while coding, we dont use mouse. So sorry for click.
Sunny
A: 

Ctrl+Tab is the default shortcut. You can change it in Window->Preferences->General->Keys - Toggle Source/Header

karim