Most useful shortcut in Eclipse CDT

Viewed 62511

I would like to make a cheat sheet presenting the most useful (and time saving) shortcut for Eclipse CDT (C++).

Can you share what are the most useful shortcuts that you use in CDT?

Please, post only general shortcuts (available when doing C++) or CDT specific.

23 Answers

Ctrl + Tab : Switch between source and header files.

Ctrl + Shift + T : Open Element.

Ctrl + Shift + R : Open File/Resource.

Ctrl + = : Explore Macro Expansion.

Ctrl + Space : Show proposals to complete you've written.

For me, this's one of the most useful key shortcuts, especially when in debug mode:

Alt + / - Go to previous / next cursor position.

Alt + Shift + : Select a block.

Shift+ Alt+ G : Generate getters and setters (bind it)

Alt + Ctrl + : Duplicate the line(s)

Ctrl + Shift + / :Fold all

Ctrl + * :Unfold all

Ctrl + / :Enable/disable folding

Debugging:

F11 Start debugging

F5 Step into a function

F6 Step over a function

F7 Step out of a function

F8 Continue to next breakpoint

Related