views:

680

answers:

6

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.

+3  A: 

Ctrl-Tab

Switch between source and header files.

pdemarest
excellent! my new favourite
Glen
+2  A: 

Ctrl-Space

Show proposals to complete you've written.

Hai
A: 

Alt+Shift+R, N

Rename a function or variable throught a project.

pdemarest
A: 

I've completed the Eclipse CDT cheat sheet, available freely on my website.

Thanks to those who answered my question!

Etienne Savard
+1  A: 

You have to change the default bindings to get these - but I like:

F3 open declaration

F4 find text in project

F4 is self-explanatory, but F3 has some intricacies: if you use it on a function call it will take you to the definition, and if you use it on a definition it will take you to the declaration.

dls
+1  A: 

Ctrl+Shift+T Open Element

Ctrl+Shift+R Open File/Resource

Ctrl+= Explore Macro Expansion

Dan Berindei